From 1ce534d349aa39e3237f09a36c8e9ebeb105499d Mon Sep 17 00:00:00 2001 From: "yang,yong" <530521314@qq.com> Date: Sun, 17 Jan 2021 09:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=8F=98=E6=9B=B4=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/modules/theme.js | 4 ---- component/pear/pear.all.js | 1 + component/pear/pear.js | 2 +- view/document/topBar.html | 2 ++ 4 files changed, 4 insertions(+), 5 deletions(-) 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 @@ + +