From 9c9fe91c1a4c15575a1d7321ee5192811a90ccd1 Mon Sep 17 00:00:00 2001 From: XPoet Date: Tue, 26 Jan 2021 22:25:57 +0800 Subject: [PATCH] perf: optimize header width expand setting --- source/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/utils.js b/source/js/utils.js index 1e15ce2..b7794bb 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -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'; }