Skip to content

Commit

Permalink
fix: 修复某些情况下无法继续的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
libondev authored Apr 8, 2024
1 parent 38d8f1d commit 175bb15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/game/[level].vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ async function startGame() {
}
function onCheckResult() {
if (!gameStatus.value.playing) {
// 如果游戏已结束或者正在预览中
if (gameStatus.value.over || gameStatus.value.previewing) {
return
}
Expand Down Expand Up @@ -297,7 +298,7 @@ onBeforeUnmount(() => {
</template>
</h2>

<div class="my-6 font-mono flex flex-wrap items-center justify-center leading-none gap-4 max-w-96">
<div class="mx-auto my-6 font-mono flex flex-wrap items-center justify-center leading-none gap-4 max-w-96">
<div class="flex items-center h-8 px-2 rounded-full border border-input bg-slate-100 dark:bg-slate-800 min-w-[75px]">
<i class="i-solar-stop-bold text-lg mr-1 text-emerald-500" />
<span class="flex-1 text-center">{{ checkedNumber }}/{{ targetBlocks.size }}</span>
Expand Down

0 comments on commit 175bb15

Please sign in to comment.