全局变更背景色

develop
yang,yong 2021-01-17 09:54:08 +08:00
parent db5162daad
commit 1ce534d349
4 changed files with 4 additions and 5 deletions

View File

@ -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);
});

View File

@ -46,4 +46,5 @@ layui.config({
theme: "theme" // 主题转换
}).use(['layer', 'theme'], function () {
var pearTheme = layui.theme;
pearTheme.changeTheme(window, false);
});

View File

@ -46,5 +46,5 @@ layui.config({
theme: "theme" // 主题转换
}).use(['layer', 'theme'], function () {
var pearTheme = layui.theme;
pearTheme.changeAll();
pearTheme.changeTheme(window, false);
});

View File

@ -8,6 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
<link rel="stylesheet" href="../../admin/css/other/console1.css" />
<!-- 主 题 更 换 -->
<style id="pearadmin-bg-color"></style>
</head>
<body class="pear-container">
<div>