From 68f4d012cc3cce1df5cb61dfa0212126ea0b202e Mon Sep 17 00:00:00 2001 From: Soybean <2570172956@qq.com> Date: Sat, 11 Sep 2021 02:36:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(utils):=20utils=E5=87=BD=E6=95=B0=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/request/instance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/request/instance.ts b/src/service/request/instance.ts index 4f0e7bae..8f1a2a6c 100644 --- a/src/service/request/instance.ts +++ b/src/service/request/instance.ts @@ -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 => {