Skip to content

Commit 9006646

Browse files
authored
fix: 修复秘境探索-钓鱼界面长按bug (#104)
2 parents e8e8332 + a6c03f0 commit 9006646

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/views/mapExploration.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
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
@@ -927,6 +927,8 @@
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,
@@ -956,6 +958,8 @@
956958
fishing.value.timeLeft--
957959
// 倒计时结束
958960
if (fishing.value.timeLeft == 0) {
961+
// 清空所有定时
962+
clearAllTiming()
959963
ElMessageBox.confirm('钓鱼失败,鱼溜走了!', '提示', {
960964
center: true,
961965
lockScroll: false,
@@ -1339,12 +1343,12 @@
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 {

0 commit comments

Comments
 (0)