修改音频加载提示的交互
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user