廖彦舟 пре 7 месеци
родитељ
комит
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) => {
   router.beforeEach(async (to) => {
     const store = useStore();
     const store = useStore();
-    const publicPaths = [ '/register', '/passwordChange','/login'];
+    const publicPaths = [ '/register', '/passwordChange', '/admin/login',];
     // 1. 检查URL中的token
     // 1. 检查URL中的token
     const urlToken = new URLSearchParams(window.location.search).get('token');
     const urlToken = new URLSearchParams(window.location.search).get('token');
     if (urlToken) {
     if (urlToken) {