更正为autoHead参数

develop
yang,yong 2021-01-17 10:15:10 +08:00
parent 1ce534d349
commit 2feca78ad7
1 changed files with 2 additions and 2 deletions

View File

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