This commit is contained in:
唐明明
2022-06-08 20:28:32 +08:00
parent f481f3615e
commit 1674e78b8a
19 changed files with 1635 additions and 1644 deletions

View File

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