This commit is contained in:
那些花儿
2025-04-30 17:12:19 +08:00
parent bffb79c006
commit 693c9ccef7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export default {
onLaunch: async function () {
console.log('App Launch')
// 检查访问页面是否需要登录(不走拦截器 直接从地址栏进入)
checkAuth()
await checkAuth()
// 初始化路由拦截器
setupRouterInterceptor(getDefaultWhiteList())
},
+1 -1
View File
@@ -101,7 +101,7 @@ async function routeInterceptor(args, whiteList) {
cancelBtn: '取消',
confirmBtn: '确认',
onConfirm: () => {
uni.navigateTo({
uni.redirectTo({
url: '/pages/login/index'
})
},