Update: (步骤备份)更新夜间模式同步

This commit is contained in:
wojiaoyishang
2025-01-21 11:02:03 +08:00
parent 813363f0d4
commit b6a64f15dc
5 changed files with 175 additions and 138 deletions
+4 -5
View File
@@ -1,10 +1,9 @@
<script>
// 自动变换主题色
const variableKey = "--global-primary-color";
const variableVal = localStorage.getItem("theme-color-color");
document.documentElement.style.setProperty(variableKey, variableVal);
// 自动变换主题色
const variableKey = "--global-primary-color";
const variableVal = localStorage.getItem("theme-color-color");
document.documentElement.style.setProperty(variableKey, variableVal);
</script>
<script src="{{ url_for('static', filename='system/component/layui/layui.js') }}"></script>
<script src="{{ url_for('static', filename='system/component/pear/pear.js') }}"></script>