perf: 加密后修改content-type
This commit is contained in:
parent
f7c00cd8f7
commit
52dc3e1788
@ -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;charset=utf-8';
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user