feat : 预加载常用页面

This commit is contained in:
2025-12-25 17:06:27 +08:00
parent 9ff9d9db5e
commit 433352c902
5 changed files with 5 additions and 4 deletions

View File

@@ -68,7 +68,7 @@
} }
}, },
{ {
"path": "pages/auth/index", "path": "pages/auth/auth",
"style": { "style": {
"navigationBarTitleText": "实名认证", "navigationBarTitleText": "实名认证",
"navigationStyle": "custom" "navigationStyle": "custom"

View File

@@ -92,7 +92,8 @@ onLoad(() => {
uni.preloadPage({ url: '/pages/careerfair/careerfair' }); uni.preloadPage({ url: '/pages/careerfair/careerfair' });
uni.preloadPage({ url: '/pages/msglog/msglog' }); uni.preloadPage({ url: '/pages/msglog/msglog' });
uni.preloadPage({ url: '/pages/mine/mine' }); uni.preloadPage({ url: '/pages/mine/mine' });
uni.preloadPage({ url: '/pages/auth/index' }); uni.preloadPage({ url: '/pages/auth/auth' });
uni.preloadPage({ url: '/pages/login/login' });
uni.preloadPage({ url: '/pages/search/search' }); uni.preloadPage({ url: '/pages/search/search' });
uni.preloadPage({ url: '/packageA/pages/choiceness/choiceness' }); uni.preloadPage({ url: '/packageA/pages/choiceness/choiceness' });
uni.preloadPage({ url: '/packageA/pages/reservation/reservation' }); uni.preloadPage({ url: '/packageA/pages/reservation/reservation' });

View File

@@ -146,7 +146,7 @@ const isAbove90 = (percent) => parseFloat(percent) < 90;
function goAuth() { function goAuth() {
if(!isAuth.value){ if(!isAuth.value){
navTo('/pages/auth/index') navTo('/pages/auth/auth')
} }
} }
function chooseFileUploadTest(pam) {} function chooseFileUploadTest(pam) {}

View File

@@ -147,7 +147,7 @@ const useUserStore = defineStore("user", () => {
return false //验证失败 return false //验证失败
} }
if (hasLogin.value && !isAuth.value) { if (hasLogin.value && !isAuth.value) {
navTo('/pages/auth/index') navTo('/pages/auth/auth')
return false //验证失败 return false //验证失败
} }
return true // 验证通过 return true // 验证通过