diff --git a/panel.js b/panel.js index 841a4cb..58a124a 100644 --- a/panel.js +++ b/panel.js @@ -2206,7 +2206,7 @@ function _renderTaskBlockListItem(block, index, state) { data-task-action="delete-block" data-block-id="${_escHtml(block.id)}" type="button" - ${block.type === "custom" ? "" : "disabled"} + ${block.type === "legacyPrompt" ? "disabled" : ""} > 删除 @@ -2661,8 +2661,8 @@ function _deleteTaskBlock(blockId) { const index = blocks.findIndex((item) => item.id === blockId); if (index < 0) return null; const block = blocks[index]; - if (block.type !== "custom") { - toastr.info("只有自定义块可以删除", "ST-BME"); + if (block.type === "legacyPrompt") { + toastr.info("兼容块不可删除", "ST-BME"); return null; } blocks.splice(index, 1);