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