加密的数据原始上传

加密以后的数据还使用json头会被Axios json化而导致在数据前会会有"

Signed-off-by: candicandi <zl@canditd.com>
This commit is contained in:
candicandi 2025-07-31 05:23:15 +00:00 committed by 玲娜贝er
parent 8f1c703e89
commit d92740b176

View File

@ -129,6 +129,7 @@ function createRequestClient(baseURL: string) {
typeof config.data === 'object'
? encryptWithAes(JSON.stringify(config.data), aesKey)
: encryptWithAes(config.data, aesKey);
config.headers['Content-Type'] = 'text/plain';
}
return config;
},