From fab113482fd299239aa8388b580ea0f28e7a2a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 18 May 2023 13:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20fixbar=20=E5=AF=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/util.js b/src/modules/util.js index de296f40..72a55577 100644 --- a/src/modules/util.js +++ b/src/modules/util.js @@ -64,7 +64,7 @@ layui.define('jquery', function(exports){ // 设置 bar 相关属性 elemBar.addClass(item.icon).attr({ 'lay-type': item.type, - 'style': item.style || ('background-color: '+ options.bgcolor) + 'style': item.style || ('background-color: '+ options.bgcolor || '') }).html(item.content); // bar 点击事件