From 36496957ffdc22851d57e6b7a2fc73ae4490f537 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 18 六月 2024 17:55:50 +0800 Subject: [PATCH] 完善退出登录-实现登录后获取用户信息存储到本地 --- Source/plt-web/plt-web-ui/src/router/axios.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/router/axios.js b/Source/plt-web/plt-web-ui/src/router/axios.js index 64b38fe..bfe6a01 100644 --- a/Source/plt-web/plt-web-ui/src/router/axios.js +++ b/Source/plt-web/plt-web-ui/src/router/axios.js @@ -41,7 +41,7 @@ const meta = (config.meta || {}); const isToken = meta.isToken === false; if (getToken() && !isToken) { - config.headers[website.tokenHeader] = 'bearer ' + getToken() + config.headers[website.tokenHeader] = getToken() } //headers涓厤缃畉ext璇锋眰 if (config.text === true) { -- Gitblit v1.9.3