fix(utils): utils函数名称更正

This commit is contained in:
Soybean 2021-09-11 02:36:01 +08:00
parent f1e7cf608e
commit 68f4d012cc

View File

@ -2,7 +2,7 @@ import axios from 'axios';
import qs from 'qs';
import type { AxiosRequestConfig, AxiosInstance } from 'axios';
import { ContentType } from '@/enum';
import { getStorageToken } from '@/utils';
import { getToken } from '@/utils';
import { errorHandler } from './errorHandler';
import { transformFile } from '../utils';
@ -51,7 +51,7 @@ export default class CustomAxiosInstance {
handleConfig.data = await transformFile(file, key);
}
// 设置token
handleConfig.headers.Authorization = getStorageToken();
handleConfig.headers.Authorization = getToken();
return handleConfig;
},
error => {