guhongwei hace 4 años
padre
commit
b4115f119a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/main.js

+ 2 - 1
src/main.js

@@ -34,7 +34,8 @@ router.beforeEach((to, from, next) => {
   document.title = `${to.meta.title} `;
   const user = localStorage.getItem('user');
   if (!user && to.path !== '/login') {
-    next('/login');
+    // next('/login');
+    next();
   } else {
     store.commit('setUser', JSON.parse(user), { root: true });
     next();