..
This commit is contained in:
@@ -8,7 +8,7 @@ export default {
|
||||
onLaunch: async function () {
|
||||
console.log('App Launch')
|
||||
// 检查访问页面是否需要登录(不走拦截器 直接从地址栏进入)
|
||||
checkAuth()
|
||||
await checkAuth()
|
||||
// 初始化路由拦截器
|
||||
setupRouterInterceptor(getDefaultWhiteList())
|
||||
},
|
||||
|
||||
@@ -101,7 +101,7 @@ async function routeInterceptor(args, whiteList) {
|
||||
cancelBtn: '取消',
|
||||
confirmBtn: '确认',
|
||||
onConfirm: () => {
|
||||
uni.navigateTo({
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/index'
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user