廖彦舟 před 7 měsíci
rodič
revize
86f717c124
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {