加解密开发环境配置
This commit is contained in:
parent
b23c2eac83
commit
c71e387dcc
|
|
@ -33,9 +33,9 @@ service.interceptors.request.use(
|
||||||
const headers = config.headers || {}
|
const headers = config.headers || {}
|
||||||
const {
|
const {
|
||||||
isToken = true,
|
isToken = true,
|
||||||
encryptRequest = true,
|
encryptRequest = process.env.NODE_ENV === 'development' ? false : true,
|
||||||
checkIntegrity = true,
|
checkIntegrity = process.env.NODE_ENV === 'development' ? false : true,
|
||||||
encryptResponse = true,
|
encryptResponse = process.env.NODE_ENV === 'development' ? false : true,
|
||||||
repeatSubmit = false,
|
repeatSubmit = false,
|
||||||
skipReplayProtection = false
|
skipReplayProtection = false
|
||||||
} = headers
|
} = headers
|
||||||
|
|
@ -207,7 +207,7 @@ service.interceptors.response.use(
|
||||||
console.log('🚀 ~ currentPath:', currentPath)
|
console.log('🚀 ~ currentPath:', currentPath)
|
||||||
// 👉 判断当前是否已经在登录页
|
// 👉 判断当前是否已经在登录页
|
||||||
if (currentPath === '/login') return // 已经在目标页,不再跳转
|
if (currentPath === '/login') return // 已经在目标页,不再跳转
|
||||||
|
|
||||||
isRelogin.show = true
|
isRelogin.show = true
|
||||||
MessageBox.confirm(
|
MessageBox.confirm(
|
||||||
'登录状态已过期,您可以继续留在该页面,或者重新登录',
|
'登录状态已过期,您可以继续留在该页面,或者重新登录',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue