feat : 预加载常用页面
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/auth/index",
|
||||
"path": "pages/auth/auth",
|
||||
"style": {
|
||||
"navigationBarTitleText": "实名认证",
|
||||
"navigationStyle": "custom"
|
||||
|
||||
@@ -92,7 +92,8 @@ onLoad(() => {
|
||||
uni.preloadPage({ url: '/pages/careerfair/careerfair' });
|
||||
uni.preloadPage({ url: '/pages/msglog/msglog' });
|
||||
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: '/packageA/pages/choiceness/choiceness' });
|
||||
uni.preloadPage({ url: '/packageA/pages/reservation/reservation' });
|
||||
|
||||
@@ -146,7 +146,7 @@ const isAbove90 = (percent) => parseFloat(percent) < 90;
|
||||
|
||||
function goAuth() {
|
||||
if(!isAuth.value){
|
||||
navTo('/pages/auth/index')
|
||||
navTo('/pages/auth/auth')
|
||||
}
|
||||
}
|
||||
function chooseFileUploadTest(pam) {}
|
||||
|
||||
@@ -147,7 +147,7 @@ const useUserStore = defineStore("user", () => {
|
||||
return false //验证失败
|
||||
}
|
||||
if (hasLogin.value && !isAuth.value) {
|
||||
navTo('/pages/auth/index')
|
||||
navTo('/pages/auth/auth')
|
||||
return false //验证失败
|
||||
}
|
||||
return true // 验证通过
|
||||
|
||||
Reference in New Issue
Block a user