同步版本
This commit is contained in:
@@ -18,7 +18,6 @@ router.beforeEach((to, from, next) => {
|
||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||
// 检查是否需要登录
|
||||
if(to.meta.auth && token === ''){
|
||||
keyPhone.keyAuth()
|
||||
return
|
||||
}
|
||||
next();
|
||||
@@ -29,6 +28,8 @@ router.afterEach((to, from) => {
|
||||
// console.log('跳转结束--暂无应用场景')
|
||||
})
|
||||
|
||||
//
|
||||
|
||||
export {
|
||||
router,
|
||||
RouterMount
|
||||
|
||||
Reference in New Issue
Block a user