From bfd8ceac5263fe5215b453f9f0cc334d9b123789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Wed, 11 Nov 2026 13:53:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(appearance-patent):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=94=B9=E6=88=90=E5=8D=95=E8=A1=8C=20danger?= =?UTF-8?q?=20=E5=BD=A2=E6=80=81=EF=BC=8C=E5=91=BD=E4=B8=AD=E3=80=8C?= =?UTF-8?q?=E5=8D=B1=E9=99=A9=E7=A1=AE=E8=AE=A4=E5=BF=85=E9=A1=BB=E6=98=AF?= =?UTF-8?q?=20danger=20=E5=BD=A2=E6=80=81=E3=80=8D=E5=AE=88=E5=8D=AB?= =?UTF-8?q?=EF=BC=88confirm-exit-ledger=20=E7=9A=84=E5=88=A4=E6=8D=AE?= =?UTF-8?q?=E9=94=9A=E5=9C=A8=20openAdminConfirm({=20=E9=82=A3=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=EF=BC=8C=E6=8B=86=E8=A1=8C=E4=BC=9A=E5=88=A4=E7=BA=A2?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 纯前端一行形态修正:文案抽到 confirmText,调用写成 openAdminConfirm({ message: confirmText, danger: true });行为不变(仍先确认、danger、点名主管与条数)。vue-tsc rc=0、mount 16/16、confirm-exit-ledger 5/5 绿。 --- .../src/pages/patent/AppearancePatentCleanItemsPage.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin-frontend-vue/src/pages/patent/AppearancePatentCleanItemsPage.vue b/admin-frontend-vue/src/pages/patent/AppearancePatentCleanItemsPage.vue index be3249f7a..40424ecb6 100644 --- a/admin-frontend-vue/src/pages/patent/AppearancePatentCleanItemsPage.vue +++ b/admin-frontend-vue/src/pages/patent/AppearancePatentCleanItemsPage.vue @@ -123,10 +123,10 @@ async function downloadSupervisor(card: AppearancePatentSupervisorCard): Promise async function removeSupervisor(card: AppearancePatentSupervisorCard): Promise { if (card.supervisorId == null || deletingId.value !== null) return const label = card.supervisorName || '该主管' - const confirmed = await openAdminConfirm({ - message: `确认删除「${label}」名下的 ${card.itemCount} 条外观专利数据库记录?此操作不可恢复(任务记录与结果文件不受影响)。`, - danger: true, - }) + // 危险确认:danger 形态与调用写在同一行(confirm-exit-ledger 的判据就锚这一行, + // 拆行会让「删除/清空必须 danger」那条守卫认不出)。 + const confirmText = `确认删除「${label}」名下的 ${card.itemCount} 条外观专利数据库记录?此操作不可恢复(任务记录与结果文件不受影响)。` + const confirmed = await openAdminConfirm({ message: confirmText, danger: true }) if (!confirmed) return deletingId.value = card.supervisorId try {