细节调整

This commit is contained in:
kron
2025-11-06 17:10:24 +08:00
parent e942c63885
commit 2ab601fef5
2 changed files with 22 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import { ref, watch, onMounted } from "vue";
import { ref, watch, onMounted, onBeforeUnmount } from "vue";
import StartCountdown from "@/components/StartCountdown.vue";
import { simulShootAPI } from "@/apis";
import useStore from "@/store";
@@ -103,6 +103,13 @@ onMounted(() => {
const envVersion = accountInfo.miniProgram.envVersion;
if (envVersion !== "release") showsimul.value = true;
});
onBeforeUnmount(() => {
if (timer.value) {
clearTimeout(timer.value);
timer.value = null;
}
});
</script>
<template>