请求配置
This commit is contained in:
parent
c11f69cb1f
commit
14b02487ee
|
|
@ -7,11 +7,19 @@ import { tansParams, blobValidate } from '@/utils/bonus'
|
||||||
import cache from '@/plugins/cache'
|
import cache from '@/plugins/cache'
|
||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
|
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
|
||||||
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
// const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
||||||
|
// requestConfig: {
|
||||||
|
// encryptRequest: true,
|
||||||
|
// checkIntegrity: true,
|
||||||
|
// encryptResponse: true,
|
||||||
|
// },
|
||||||
|
// }
|
||||||
|
const systemConfig = {
|
||||||
requestConfig: {
|
requestConfig: {
|
||||||
encryptRequest: true,
|
encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
checkIntegrity: true,
|
checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
encryptResponse: true,
|
encryptResponse:
|
||||||
|
process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,20 @@ import { tansParams, blobValidate } from '@/utils/bonus'
|
||||||
import cache from '@/plugins/cache'
|
import cache from '@/plugins/cache'
|
||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
|
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
|
||||||
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
// const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
|
||||||
|
// requestConfig: {
|
||||||
|
// encryptRequest: false,
|
||||||
|
// checkIntegrity: false,
|
||||||
|
// encryptResponse: false,
|
||||||
|
// },
|
||||||
|
// }
|
||||||
|
|
||||||
|
const systemConfig = {
|
||||||
requestConfig: {
|
requestConfig: {
|
||||||
encryptRequest: false,
|
encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
checkIntegrity: false,
|
checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
encryptResponse: false,
|
encryptResponse:
|
||||||
|
process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue