|
|
|
@ -129,6 +129,7 @@ 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';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return config;
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|