From 6e839fb255a09ee6ddd27bc679d1dd839da47eef Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Sun, 15 Dec 2024 15:31:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcas=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 ++-- src/utils/request.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 19e5a5f..1dc1998 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -233,8 +233,8 @@ router.beforeEach(async (to, form, next) => { path: path, query: query })) - window.location.href = `${window.location.origin}/api/auth/cas/login` - // next({path: '/api/auth/cas/login'}) + // window.location.href = `${window.location.origin}/api/auth/cas/login` + next({path: '/api/auth/cas/login'}) } } else { if (to.path === '/login' || to.path === '/cas/login') { diff --git a/src/utils/request.js b/src/utils/request.js index 5bbcd41..3885509 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -57,6 +57,7 @@ serveice.interceptors.response.use(response => { path: path, query: query })) + //todo 跳转登录页 window.location.href = `${window.location.origin}/api/auth/cas/login` // }) return Promise.reject('会话已过期,请重新登录')