廖彦舟 7 месяцев назад
Родитель
Сommit
86f717c124
1 измененных файлов с 1 добавлено и 1 удалено
  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) {