廖彦舟 9 mesi fa
parent
commit
86f717c124
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -260,7 +260,7 @@ const router = createRouter({
  */
   router.beforeEach(async (to) => {
     const store = useStore();
-    const publicPaths = [ '/register', '/passwordChange','/login'];
+    const publicPaths = [ '/register', '/passwordChange', '/admin/login',];
     // 1. 检查URL中的token
     const urlToken = new URLSearchParams(window.location.search).get('token');
     if (urlToken) {