From 4543900d688b7941180327555136fdd3937d82f3 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Wed, 25 Mar 2026 22:31:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=80=E6=9C=89=E5=9D=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=9D=87=E5=8F=AF=E5=88=A0=E9=99=A4=EF=BC=88=E5=90=AB?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=9D=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panel.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/panel.js b/panel.js index 58a124a..752abdb 100644 --- a/panel.js +++ b/panel.js @@ -2206,7 +2206,6 @@ function _renderTaskBlockListItem(block, index, state) { data-task-action="delete-block" data-block-id="${_escHtml(block.id)}" type="button" - ${block.type === "legacyPrompt" ? "disabled" : ""} > 删除 @@ -2661,10 +2660,7 @@ function _deleteTaskBlock(blockId) { const index = blocks.findIndex((item) => item.id === blockId); if (index < 0) return null; const block = blocks[index]; - if (block.type === "legacyPrompt") { - toastr.info("兼容块不可删除", "ST-BME"); - return null; - } + blocks.splice(index, 1); draft.blocks = _normalizeTaskBlocks(blocks); return {