Explorar o código

优化进入login页面后依然可以回退到页面的问题1

zhangliang2 %!s(int64=2) %!d(string=hai) anos
pai
achega
e2a2cd9b38
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/router/filter.js

+ 2 - 2
src/router/filter.js

@@ -37,8 +37,8 @@ router.beforeEach((to, from, next) => {
             if (localStorage.getItem('Authorization')) {
                 next();
             } else {
-                // next(false);
-                return false
+                next(false);
+                // return false
             }
         } else {
             next();