fix: 加密后修改请求头会造成报错HttpMediaTypeNotSupportedException
This commit is contained in:
parent
0be1a0825d
commit
cd77063f68
@ -129,7 +129,6 @@ function createRequestClient(baseURL: string) {
|
|||||||
typeof config.data === 'object'
|
typeof config.data === 'object'
|
||||||
? encryptWithAes(JSON.stringify(config.data), aesKey)
|
? encryptWithAes(JSON.stringify(config.data), aesKey)
|
||||||
: encryptWithAes(config.data, aesKey);
|
: encryptWithAes(config.data, aesKey);
|
||||||
config.headers['Content-Type'] = 'text/plain;charset=utf-8';
|
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user