From e4c33a7d2237bf94df12742918f1991bba82812c Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 25 Oct 2022 15:50:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D`title`=E8=BF=87?= =?UTF-8?q?=E9=95=BF=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/sidebar/logo.vue | 6 ++++++ src/utils/http/index.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/layout/components/sidebar/logo.vue b/src/layout/components/sidebar/logo.vue index ad7e07f9e..70e240b92 100644 --- a/src/layout/components/sidebar/logo.vue +++ b/src/layout/components/sidebar/logo.vue @@ -51,6 +51,12 @@ const { title } = useNav(); margin-top: 5px; .sidebar-title { + display: block; + width: 160px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-align: left; color: #1890ff; font-weight: 600; font-size: 20px; diff --git a/src/utils/http/index.ts b/src/utils/http/index.ts index 7a8ae886b..3cfdf43cf 100644 --- a/src/utils/http/index.ts +++ b/src/utils/http/index.ts @@ -59,7 +59,7 @@ class PureHttp { PureHttp.initConfig.beforeRequestCallback($config); return $config; } - /** 请求白名单(通过设置请求白名单,防止token过期后再请求造成的死循环问题) */ + /** 请求白名单,放置一些不需要token的接口(通过设置请求白名单,防止token过期后再请求造成的死循环问题) */ const whiteList = ["/refreshToken", "/login"]; return whiteList.some(v => config.url.indexOf(v) > -1) ? config