From 65f23f1f58581cd22005931993740682724fd69b Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 21 Apr 2022 10:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/index/index.html | 2 +- public/static/login.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/view/index/index.html b/app/admin/view/index/index.html index af59fbd6e..60af081db 100644 --- a/app/admin/view/index/index.html +++ b/app/admin/view/index/index.html @@ -19,7 +19,7 @@ - + {block name='body'}
diff --git a/public/static/login.js b/public/static/login.js index 90df013a4..95c5ba460 100644 --- a/public/static/login.js +++ b/public/static/login.js @@ -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 () {