From 13fecd2175fd2e8f61b55aefec4cad78f1ce813e Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Wed, 19 Mar 2025 21:13:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E7=89=88=E9=81=93=E5=85=B7?= =?UTF-8?q?=E6=A0=8F=20=E6=97=A0=E9=81=93=E5=85=B7=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/plugins.js b/project/plugins.js index 9b73dc54..0925fd6b 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2958,10 +2958,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = function getSelectedItem() { var info = core.status.thisUIEventInfo; - if (!(info && info.select.id && ["toolbox", "equipbox"].includes(core.status.event.id))) { + if (!(info && info.select && ["toolbox", "equipbox"].includes(core.status.event.id))) { core.drawFailTip('发生了未知错误!'); return; } + // info.select.id可以不存在,当一个可显示都没有时就会出现该情况 return info.select.id; }