修改模板文件

This commit is contained in:
Anyon 2022-04-21 10:51:02 +08:00
parent 20329007f5
commit 65f23f1f58
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
</head>
<body class="layui-layout-body layui-layout-theme-{$theme|default=''}">
<body class="layui-layout-body layui-layout-theme-{$theme|default='default'}">
{block name='body'}
<div class="layui-layout layui-layout-admin layui-layout-left-hide">

View File

@ -19,7 +19,7 @@ $(function () {
/*! 登录界面背景切换 */
$('[data-supersized]').each(function (i, el) {
el.idx = 0, el.imgs = [], el.lazy = setInterval(function () {
if (el.imgs.length > 0) return;
if (el.imgs.length < 1) return;
$body.css({backgroundImage: 'url(' + (el.imgs[++el.idx] || el.imgs[el.idx = 0]) + ')'});
}, 5000) && el.dataset.supersized.split(',').forEach(function (url) {
layui.img(url, function () {