From e5b8ef4751de021f034264867ff9cd773b7c1f45 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Sun, 4 Oct 2026 01:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9B=AE=E5=BD=95=20F1-A4=20?= =?UTF-8?q?=E8=A1=A5=EF=BC=9A=E7=BC=96=E8=BE=91=E6=97=B6=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E7=A0=81=E5=80=BC=EF=BC=8C=E3=80=8C=E5=B7=B2=E5=88=97=E5=87=BA?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=8F=96=E5=80=BC=E3=80=8D=E8=B7=9F=E7=9D=80?= =?UTF-8?q?=E5=A4=B1=E6=95=88=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=8F=A6=E7=AE=97?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/catalog/model.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/catalog/model.ts b/frontend/src/pages/catalog/model.ts index 0db1d14e..3d625371 100644 --- a/frontend/src/pages/catalog/model.ts +++ b/frontend/src/pages/catalog/model.ts @@ -307,7 +307,8 @@ export function changeCount(initial: EditForm, form: EditForm): number { for (const k of TABLE_KEYS) if ((initial.table[k] ?? '') !== (form.table[k] ?? '')) n++ for (const [col, fields] of Object.entries(form.columns)) { for (const f of COLUMN_FIELDS) if ((initial.columns[col]?.[f] ?? '') !== (fields[f] ?? '')) n++ - if (completeOf(initial.columns[col]) !== completeOf(fields)) n++ + // 清空码值时勾选跟着失效,那一处已经算在码值的文字里,不重复算 + if ((fields.codes ?? '').trim() && completeOf(initial.columns[col]) !== completeOf(fields)) n++ } const before = new Map(initial.relations.map((r) => [r.key, r])) const after = new Set(form.relations.map((r) => r.key))