加密以后的数据还使用json头会被Axios json化而导致在数据前会会有" Signed-off-by: candicandi <zl@canditd.com>
@ -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;
},