mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-06 01:23:15 +08:00
加密的数据原始上传
加密以后的数据还使用json头会被Axios json化而导致在数据前会会有" Signed-off-by: candicandi <zl@canditd.com>
This commit is contained in:
@@ -129,6 +129,7 @@ function createRequestClient(baseURL: string) {
|
|||||||
typeof config.data === 'object'
|
typeof config.data === 'object'
|
||||||
? encryptWithAes(JSON.stringify(config.data), aesKey)
|
? encryptWithAes(JSON.stringify(config.data), aesKey)
|
||||||
: encryptWithAes(config.data, aesKey);
|
: encryptWithAes(config.data, aesKey);
|
||||||
|
config.headers['Content-Type'] = 'text/plain';
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user