fix: 修复title过长显示样式问题

This commit is contained in:
xiaoxian521 2022-10-25 15:50:18 +08:00
parent 6765ce8644
commit e4c33a7d22
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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