From c1c0e7fd8095d577c43f036844db0cd1f232cef9 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123 <819527061@qq.com> Date: 星期四, 04 五月 2023 11:30:45 +0800 Subject: [PATCH] 解决大屏携带token问题 --- src/libs/util.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/util.js b/src/libs/util.js index ef75aad..d13ced2 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -9,7 +9,7 @@ }; util.title = function (title) { - title = title || 'XBoot涓�绔欏紡鍓嶅悗绔垎绂诲揩閫熷紑鍙戝钩鍙�'; + title = title; window.document.title = title; }; @@ -328,7 +328,7 @@ if (!vm.$store.state.app.added) { vm.$Loading.start(); // 绗竴娆″姞杞� 璇诲彇鏁版嵁 - let accessToken = window.localStorage.getItem('accessToken'); + let accessToken = window.sessionStorage.getItem('accessToken'); // 鍔犺浇鑿滃崟 axios.get(getMenuList, { headers: { 'accessToken': accessToken } }).then(res => { vm.$Loading.finish(); @@ -451,7 +451,7 @@ let meta = {}; // 缁欓〉闈㈡坊鍔犳潈闄愩�佹爣棰樸�佺涓夋柟缃戦〉閾炬帴 meta.permTypes = menu.permTypes ? menu.permTypes : null; - meta.title = menu.title ? menu.title + " - XBoot涓�绔欏紡鍓嶅悗绔垎绂诲揩閫熷紑鍙戝钩鍙� By: Exrick" : null; + meta.title = menu.title ? menu.title: null; meta.url = menu.url ? menu.url : null; menu.meta = meta; -- Gitblit v1.9.1