版本更新

This commit is contained in:
唐明明
2022-06-11 13:53:54 +08:00
parent bfed17d7d6
commit 45288f7470
12 changed files with 9541 additions and 16526 deletions

View File

@@ -11,18 +11,22 @@ const router = createRouter({
//全局路由前置守卫
router.beforeEach((to, from, next) => {
if(to.name === 'Auth' && store.getters.getToken != '' && uni.getStorageSync('token') != ''){
if(uni.getStorageSync('isnew') === 0){
if(to.name === 'Auth'){
if(store.getters.getToken != '' || uni.getStorageSync('token') != ''){
if(uni.getStorageSync('isnew') === 0){
next({
name: 'AuthRole',
NAVTYPE: 'replace'
})
return
}
next({
name: 'AuthRole',
NAVTYPE: 'replace'
name: 'Life',
NAVTYPE: 'pushTab'
})
return
}
next({
name: 'Life',
NAVTYPE: 'pushTab'
})
next();
return
}
next();