diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index af05ca5..b5f0f32 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -142,11 +142,12 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], } var colorId = localStorage.getItem("theme-color"); var menu = localStorage.getItem("theme-menu"); + console.log("主题标识:"+colorId); + console.log("菜单主题:"+menu); var color = getColorById(colorId); if (menu == "null") { menu = option.theme.defaultMenu; } else { - if (option.theme.allowCustom == false) { menu = option.theme.defaultMenu; } @@ -209,9 +210,6 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], if ($("iframe").contents().find("#customTheme").length > 0) { $("iframe").contents().find("#customTheme").remove(); } - /* var theme = "'; - $("iframe").contents().find("head").append(theme); */ $("#pearadmin-bg-color").html(style); } }; diff --git a/pear.config.json b/pear.config.json index 53a765c..de42bd3 100644 --- a/pear.config.json +++ b/pear.config.json @@ -20,8 +20,8 @@ } }, "theme": { - "defaultColor": "2", - "defaultMenu": "dark-theme", + "defaultColor": "3", + "defaultMenu": "light-theme", "allowCustom": true }, "colors": [{ diff --git a/view/console/console1.html b/view/console/console1.html index 568cad5..eb9c1a2 100644 --- a/view/console/console1.html +++ b/view/console/console1.html @@ -227,7 +227,9 @@
-
+
+ 链接 +
官 网