Compare commits

..

No commits in common. "b979d35a550ca10e3f991fd222984a45f2ec0958" and "d34cb7a4986aa364bf41d4ea963378b576fbe7f0" have entirely different histories.

1 changed files with 4 additions and 4 deletions

View File

@ -33,9 +33,9 @@ service.interceptors.request.use(
const headers = config.headers || {}
const {
isToken = true,
encryptRequest = process.env.NODE_ENV === 'development' ? false : true,
checkIntegrity = process.env.NODE_ENV === 'development' ? false : true,
encryptResponse = process.env.NODE_ENV === 'development' ? false : true,
encryptRequest = true,
checkIntegrity = true,
encryptResponse = true,
repeatSubmit = false,
skipReplayProtection = false
} = headers
@ -207,7 +207,7 @@ service.interceptors.response.use(
console.log('🚀 ~ currentPath:', currentPath)
// 👉 判断当前是否已经在登录页
if (currentPath === '/login') return // 已经在目标页,不再跳转
isRelogin.show = true
MessageBox.confirm(
'登录状态已过期,您可以继续留在该页面,或者重新登录',