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