From 2aec509f41c0a91827a7fac09e07d2de70cd3acf Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 24 Jun 2022 15:09:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=94=B9token=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.js b/src/utils/http.js index 34f61736..1ee1ae5d 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -4,7 +4,7 @@ import { storageKey } from '@/utils/constants' axios.interceptors.request.use(config => { const token = localStorage.getItem(storageKey.token) if (token) { - config.headers.Authorization = token // 请求头token + config.headers['Cn-Authorization'] = token // 请求头token } return config },