开发环境配置
This commit is contained in:
parent
68f62f8f60
commit
ad0a10c831
|
|
@ -10,7 +10,7 @@ import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
|
|||
import router from '@/router'
|
||||
|
||||
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
||||
requestConfig: { encryptRequest: false, checkIntegrity: false, encryptResponse: false }
|
||||
requestConfig: { encryptRequest: true, checkIntegrity: true, encryptResponse: true }
|
||||
};
|
||||
|
||||
let downloadLoadingInstance
|
||||
|
|
@ -33,9 +33,9 @@ service.interceptors.request.use(config => {
|
|||
const headers = config.headers || {}
|
||||
const {
|
||||
isToken = true,
|
||||
encryptRequest = true,
|
||||
checkIntegrity = true,
|
||||
encryptResponse = 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,
|
||||
repeatSubmit = false
|
||||
} = headers
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue