添加退出当前页面关闭声音

This commit is contained in:
kron
2025-11-13 11:58:16 +08:00
parent cfc9912a4a
commit 24996a4b35
6 changed files with 10 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ import Avatar from "@/components/Avatar.vue";
import BowPower from "@/components/BowPower.vue";
import TestDistance from "@/components/TestDistance.vue";
import BubbleTip from "@/components/BubbleTip.vue";
import audioManager from "@/audioManager";
import { createPractiseAPI } from "@/apis";
import { generateCanvasImage, wxShare, debounce } from "@/util";
import { MESSAGETYPES, roundsName } from "@/constants";
@@ -24,6 +25,7 @@ const currentRound = ref(0);
const practiseResult = ref({});
const practiseId = ref("");
const showGuide = ref(false);
const tips = ref("");
const onReady = async () => {
const result = await createPractiseAPI(total);
@@ -102,6 +104,7 @@ onBeforeUnmount(() => {
});
uni.$off("socket-inbox", onReceiveMessage);
uni.$off("share-image", onClickShare);
audioManager.stopAll();
});
</script>
@@ -119,7 +122,6 @@ onBeforeUnmount(() => {
}轮`
}`"
:start="start"
:total="120"
/>
<view class="user-row">
<Avatar :src="user.avatar" :size="35" />