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

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

@@ -12,6 +12,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 } from "@/constants";
@@ -104,6 +105,7 @@ onBeforeUnmount(() => {
});
uni.$off("socket-inbox", onReceiveMessage);
uni.$off("share-image", onClickShare);
audioManager.stopAll();
});
const nextStep = async () => {