Browse Source

feat: 路由守卫去除重定向功能;

liujia 2 tháng trước cách đây
mục cha
commit
dca2284ada
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/router/guard.ts

+ 1 - 1
src/router/guard.ts

@@ -9,7 +9,7 @@ export const authGuard = (to: RouteLocationNormalized) => {
     message.error('登录失效,请重新登录')
     return {
       name: 'login',
-      query: { redirect: to.fullPath },
+      // query: { redirect: to.fullPath },
     }
   }
 }