dedsudiyu 9 miesięcy temu
rodzic
commit
ed7c9fc426
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/permission.js

+ 2 - 2
src/permission.js

@@ -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
     }