File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 798798 const startFishing = () => {
799799 if (! holdingId .value ) {
800800 moveButton ()
801- holdingId .value = setInterval (moveButton . value , 100 )
801+ holdingId .value = setInterval (moveButton, 100 )
802802 }
803803 }
804804
927927 if (fishing .value .score >= maxScore && ! fishing .value .gameOver ) {
928928 fishing .value .gameOver = true
929929 const fishInfo = getRandomFish ()
930+ // 清空所有定时
931+ clearAllTiming ()
930932 ElMessageBox .confirm (fishInfo .description , fishInfo .name , {
931933 center: true ,
932934 showClose: false ,
956958 fishing .value .timeLeft --
957959 // 倒计时结束
958960 if (fishing .value .timeLeft == 0 ) {
961+ // 清空所有定时
962+ clearAllTiming ()
959963 ElMessageBox .confirm (' 钓鱼失败,鱼溜走了!' , ' 提示' , {
960964 center: true ,
961965 lockScroll: false ,
13391343
13401344 /* 钓鱼 */
13411345 .diaoyu - shortcutKeys {
1342- display: none ;
1346+ display: block ;
13431347 }
13441348
13451349 @media only screen and (max - width : 768px ) {
13461350 .shortcutKeys {
1347- display: none ;
1351+ display: block ;
13481352 }
13491353
13501354 .diaoyu - shortcutKeys {
You can’t perform that action at this time.
0 commit comments