From 53ee2e3c40fc49531a82f80aa06833afcdd092b2 Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 22 Sep 2026 12:08:44 +0000 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E9=85=8D=E7=BD=AE=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=B8=B2=E6=9F=93=E4=B8=AD=E8=A2=AB=E5=B0=B1=E5=9C=B0?= =?UTF-8?q?=E6=B1=A1=E6=9F=93=EF=BC=8C=E5=88=87=E6=8D=A2=E5=BD=A2=E6=80=81?= =?UTF-8?q?=E5=90=8E=E9=80=80=E5=8C=96=E4=B8=BA=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/plugs/ulthon-admin/admin-table.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/static/plugs/ulthon-admin/admin-table.js b/public/static/plugs/ulthon-admin/admin-table.js index eaae518..767c36d 100644 --- a/public/static/plugs/ulthon-admin/admin-table.js +++ b/public/static/plugs/ulthon-admin/admin-table.js @@ -1487,6 +1487,8 @@ }, buildOperatHtml: function (operat, data) { var html = ''; + // 拷贝替代引用:后续默认值写入与格式化不得写回共享配置对象 + operat = $.extend({}, operat); operat.class = operat.class || ''; operat.icon = operat.icon || ''; operat.auth = operat.auth || 'add'; @@ -1726,6 +1728,8 @@ } else if (typeof item === 'object') { $.each(item, function (i, operat) { + // 拷贝替代引用:默认值写入与 url 拼接不得写回共享配置对象 + operat = $.extend({}, operat); operat.class = operat.class || ''; operat.icon = operat.icon || ''; operat.auth = operat.auth || 'add';