From 79b0a56f506b0553fa67e4ce7467a21d4d8660ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sun, 16 Mar 2025 00:13:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(component):=20=E4=BF=AE=E5=A4=8D=20reload?= =?UTF-8?q?=20=E6=97=B6=E4=BC=A0=E5=85=A5=E7=9A=84=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E5=90=88=E5=B9=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/component.js b/src/modules/component.js index e84f026c..a900beb2 100644 --- a/src/modules/component.js +++ b/src/modules/component.js @@ -103,7 +103,7 @@ layui.define(['jquery', 'lay'], function(exports) { // 重载实例 Class.prototype.reload = function(options, type) { var that = this; - $.extend(settings.isDeepReload, that.config, options); + that.config = $.extend(settings.isDeepReload, {}, that.config, options); that.init(true, type); };