From 2feca78ad7de5815f0e7e9ebfafd32df2cb9e040 Mon Sep 17 00:00:00 2001 From: "yang,yong" <530521314@qq.com> Date: Sun, 17 Jan 2021 10:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E4=B8=BAautoHead=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/modules/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/pear/modules/admin.js b/component/pear/modules/admin.js index 7b89e01..aae18e9 100644 --- a/component/pear/modules/admin.js +++ b/component/pear/modules/admin.js @@ -171,7 +171,7 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame const currentColor = getColorById(colorId); localStorage.setItem("theme-color", currentColor.id); localStorage.setItem("theme-color-context", currentColor.color); - pearTheme.changeTheme(window, option.theme.allowCustom); + pearTheme.changeTheme(window, option.theme.autoHead); let menu = localStorage.getItem("theme-menu"); if (menu === "null") { menu = option.theme.defaultMenu; @@ -332,7 +332,7 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame const currentColor = getColorById(colorId); localStorage.setItem("theme-color", currentColor.id); localStorage.setItem("theme-color-context", currentColor.color); - pearTheme.changeTheme(window, config.theme.allowCustom); + pearTheme.changeTheme(window, config.theme.autoHead); }); function applyConfig(param) {