加密的数据原始上传
加密以后的数据还使用json头会被Axios json化而导致在数据前会会有" Signed-off-by: candicandi <zl@canditd.com>
This commit is contained in:
parent
ac6099cc96
commit
83d95b33d5
@ -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…
Reference in New Issue
Block a user