修改音频加载提示的交互

This commit is contained in:
kron
2025-11-26 17:12:55 +08:00
parent d02ecf6a7e
commit da7816bb88
6 changed files with 111 additions and 115 deletions

View File

@@ -26,7 +26,7 @@ const showModal = ref(false);
const showGuide = ref(false);
const calibration = ref(false);
const toPage = (path) => {
const toPage = async (path) => {
if (!user.value.id) {
showModal.value = true;
return;
@@ -53,6 +53,9 @@ const toPage = (path) => {
});
}
}
if (path === "/pages/first-try") {
await uni.$checkAudio();
}
uni.navigateTo({
url: path,
});