[解决冲突]
This commit is contained in:
@@ -23,16 +23,11 @@ const router = createRouter({
|
||||
// 全局路由前置守卫
|
||||
router.beforeEach((to, from, next) => {
|
||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||
// 检查是否需要微信授权
|
||||
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
||||
// next({
|
||||
// name: 'wxAuth'
|
||||
// })
|
||||
// }
|
||||
// 检查是否需要登录
|
||||
if(to.auth && token === ''){
|
||||
next({
|
||||
name: 'Login',
|
||||
NAVTYPE: 'push',
|
||||
params: {
|
||||
toName: to.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user