diff --git a/component/pear/modules/theme.js b/component/pear/modules/theme.js index 08f4208..211a14d 100644 --- a/component/pear/modules/theme.js +++ b/component/pear/modules/theme.js @@ -77,9 +77,5 @@ layui.define(["jquery","layer"], function (exports) { $("#pearadmin-bg-color").html(style); } - theme.changeAll = function () { - console.log("change theme123"); - } - exports(MOD_NAME, theme); }); \ No newline at end of file diff --git a/component/pear/pear.all.js b/component/pear/pear.all.js index 4993b2d..8d38597 100644 --- a/component/pear/pear.all.js +++ b/component/pear/pear.all.js @@ -46,4 +46,5 @@ layui.config({ theme: "theme" // 主题转换 }).use(['layer', 'theme'], function () { var pearTheme = layui.theme; + pearTheme.changeTheme(window, false); }); \ No newline at end of file diff --git a/component/pear/pear.js b/component/pear/pear.js index 9e11f86..8d38597 100644 --- a/component/pear/pear.js +++ b/component/pear/pear.js @@ -46,5 +46,5 @@ layui.config({ theme: "theme" // 主题转换 }).use(['layer', 'theme'], function () { var pearTheme = layui.theme; - pearTheme.changeAll(); + pearTheme.changeTheme(window, false); }); \ No newline at end of file diff --git a/view/document/topBar.html b/view/document/topBar.html index ebc7458..bcaf014 100644 --- a/view/document/topBar.html +++ b/view/document/topBar.html @@ -8,6 +8,8 @@ + +