From f4eacfafe25c55757e70c1d9d833b224f84eda54 Mon Sep 17 00:00:00 2001 From: mac Date: Tue, 16 Jun 2026 16:03:33 +0800 Subject: [PATCH] =?UTF-8?q?v2.0.9=20=E2=80=94=20=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=80=9A=E7=94=A8deleteDrawerItem=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/app.js b/static/app.js index d0d578c..aae6b33 100644 --- a/static/app.js +++ b/static/app.js @@ -518,7 +518,7 @@ function openDrawer(resource, id) { const multilineFields = ["customer_need", "current_deliverable", "risks", "next_action", "version_goal", "feature_list", "notes"]; const followupTarget = resource === "sales" ? "sales" : resource === "proposals" ? "proposal" : resource === "operations" ? "operation" : resource === "products" ? "product" : ""; const title = item.target_customer || item.project_name || item.customer_or_project_name || item.product_name; - drawer.innerHTML = `

Detail Drawer

${title}

+ drawer.innerHTML = `

Detail Drawer

${title}

属性

@@ -620,10 +620,10 @@ function bindDrawerAutosave(resource, id, item) { window.openDrawer = openDrawer; -window.deleteOperation = async (id) => { - if (!confirm("确认删除该项目?此操作不可撤销。")) return; +window.deleteDrawerItem = async (resource, id) => { + if (!confirm("确认删除?此操作不可撤销。")) return; try { - await api(`/api/operations/${id}`, { method: "DELETE" }); + await api(`/api/${resource}/${id}`, { method: "DELETE" }); closeDrawer(); await load(); } catch (error) {