|
@@ -36,8 +36,13 @@ router.beforeEach((to, from, next) => {
|
|
|
})
|
|
|
}).catch(err => {
|
|
|
store.dispatch('LogOut').then(() => {
|
|
|
- Message.error(err)
|
|
|
- next({ path: '/login' })
|
|
|
+ const loginPath = isPadDevice() ? 2 : 1;
|
|
|
+ Message.error(err)
|
|
|
+ if(loginPath==1){
|
|
|
+ next({ path: '/login' })
|
|
|
+ }else{
|
|
|
+ next({ path: '/loginPad' })
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
@@ -57,7 +62,7 @@ router.beforeEach((to, from, next) => {
|
|
|
}else{
|
|
|
next(`/loginPad`) // 否则全部重定向到登录页
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
NProgress.done()
|
|
|
}
|
|
|
}
|