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('会话已过期,请重新登录')