加密的数据原始上传

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

Signed-off-by: candicandi <zl@canditd.com>
master
candicandi 5 months ago committed by 玲娜贝er
parent 8f1c703e89
commit d92740b176

@ -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;
},

Loading…
Cancel
Save