perf: 加密后修改content-type
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
Reference in New Issue
Block a user