feat(projects): 细节完善

This commit is contained in:
Soybean
2022-01-19 00:36:53 +08:00
parent 579e07400e
commit cc290accc2
6 changed files with 236 additions and 206 deletions

View File

@ -39,7 +39,7 @@ export default class CustomAxiosInstance {
const handleConfig = { ...config };
if (handleConfig.headers) {
// 数据转换
const contentType = handleConfig.headers['Content-Type'];
const contentType = handleConfig.headers['Content-Type'] as string;
handleConfig.data = await transformRequestData(handleConfig.data, contentType);
// 设置token
handleConfig.headers.Authorization = getToken();