perf: 加密后修改content-type

This commit is contained in:
dap 2025-02-06 15:35:33 +08:00
parent f7c00cd8f7
commit 52dc3e1788

View File

@ -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;
},