From d0ae0020f935d352ff9b6ddd50d7b7da70c7a3ed Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Thu, 10 Jul 2025 13:35:59 +0800 Subject: [PATCH] sdsd --- src/router/index.ts | 2 +- src/utils/request.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 64cfe8a..3410f59 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -101,7 +101,7 @@ router.beforeEach(async (to, from, next) => { const token = GET_TOKEN() if (token) { if (to.path === '/login') { - next('/index') + next('/user') } else { next() } diff --git a/src/utils/request.ts b/src/utils/request.ts index b893b26..3f55c8e 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -47,8 +47,8 @@ request.interceptors.response.use( message: error.response.data.message, duration: 2000, onClose: () => { - if(location.pathname != '/index'){ - location.href = '/index' + if(location.pathname != '/system/login'){ + location.href = '/system/login' } } })