|
@@ -14,7 +14,7 @@ router.beforeEach((to, from, next) => {
|
|
|
if (getToken()) {
|
|
|
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
|
|
|
/* has token*/
|
|
|
- if (to.path === '/login' || to.path === '/adminLogin' ) {
|
|
|
+ if (to.path === '/login') {
|
|
|
next({ path: '/' })
|
|
|
NProgress.done()
|
|
|
} else {
|
|
@@ -37,7 +37,7 @@ router.beforeEach((to, from, next) => {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if(to.path == '/codeHtml' || to.path === '/bigDataLogin' || to.path === '/androidFilePreview'){
|
|
|
+ if(to.path == '/codeHtml' || to.path === '/bigDataLogin' || to.path === '/androidFilePreview' || to.path === '/adminLogin' ){
|
|
|
next()
|
|
|
return
|
|
|
}
|