This commit is contained in:
parent
ba907f9ab3
commit
447baa7e29
|
|
@ -7,21 +7,21 @@ 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: process.env.VUE_APP_ENV === 'production' ? true : false,
|
encryptRequest: true,
|
||||||
checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
checkIntegrity: true,
|
||||||
encryptResponse:
|
encryptResponse: true,
|
||||||
process.env.VUE_APP_ENV === 'production' ? true : false,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
// const systemConfig = {
|
||||||
|
// requestConfig: {
|
||||||
|
// encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// encryptResponse:
|
||||||
|
// process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// },
|
||||||
|
// }
|
||||||
|
|
||||||
let downloadLoadingInstance
|
let downloadLoadingInstance
|
||||||
// 是否显示重新登录
|
// 是否显示重新登录
|
||||||
|
|
|
||||||
|
|
@ -7,23 +7,23 @@ 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: process.env.VUE_APP_ENV === 'production' ? true : false,
|
encryptRequest: false,
|
||||||
checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
checkIntegrity: false,
|
||||||
encryptResponse:
|
encryptResponse: false,
|
||||||
process.env.VUE_APP_ENV === 'production' ? true : false,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// const systemConfig = {
|
||||||
|
// requestConfig: {
|
||||||
|
// encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// encryptResponse:
|
||||||
|
// process.env.VUE_APP_ENV === 'production' ? true : false,
|
||||||
|
// },
|
||||||
|
// }
|
||||||
|
|
||||||
let downloadLoadingInstance
|
let downloadLoadingInstance
|
||||||
// 是否显示重新登录
|
// 是否显示重新登录
|
||||||
export let isRelogin = { show: false }
|
export let isRelogin = { show: false }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue