perf: optimize header width expand setting

This commit is contained in:
XPoet 2021-01-26 22:25:57 +08:00
parent 68838af9d0
commit 9c9fe91c1a
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ KEEP.initUtils = () => {
let isExpand = false;
if (KEEP.theme_config.style.first_screen.enable === true) {
if (KEEP.theme_config.style.first_screen.enable === true && window.location.pathname === '/') {
headerMaxWidth = parseInt(defaultMaxWidth) * 1.2 + 'px';
}