up. 双向数据加密
This commit is contained in:
parent
93f6b684d7
commit
12b16e56d7
@ -68,7 +68,6 @@ export function requestInterceptor(config: SecureRequestConfig) {
|
|||||||
config.url = toURLSearch(config.params, config.url);
|
config.url = toURLSearch(config.params, config.url);
|
||||||
config.params = {};
|
config.params = {};
|
||||||
}
|
}
|
||||||
console.log("是否需要加密->", shouldEncrypt);
|
|
||||||
if (shouldEncrypt && !config.headers?.['X-Encrypted']) {
|
if (shouldEncrypt && !config.headers?.['X-Encrypted']) {
|
||||||
config.data = {
|
config.data = {
|
||||||
encryptedData: encryptData(config.data)
|
encryptedData: encryptData(config.data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user