From b3ac241354c958980d77e44d72706a56412448b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98Liammcl=E2=80=99?= Date: Sat, 28 Dec 2024 12:37:46 +0800 Subject: [PATCH] fix --- src/pages/company/service/index.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pages/company/service/index.jsx b/src/pages/company/service/index.jsx index 07f834d..36cd1e6 100644 --- a/src/pages/company/service/index.jsx +++ b/src/pages/company/service/index.jsx @@ -191,12 +191,10 @@ const ServicePage = () => { const sectionIndex = sections.findIndex((s) => s.key === sectionKey); if (sectionIndex > -1) { - // 直接删除项目,而不是清空 sections[sectionIndex].items = sections[sectionIndex].items.filter( (_, idx) => idx !== itemIndex ); - // 如果该部分没有项目了,删除整个部分 if (sections[sectionIndex].items.length === 0) { sections.splice(sectionIndex, 1); } @@ -435,8 +433,8 @@ const ServicePage = () => { }, { title: "模板类型", - dataIndex: ["attributes", "type"], - key: "type", + dataIndex: ["attributes", "template_type"], + key: "template_type", filters: Object.entries(TEMPLATE_TYPES).map(([key, value]) => ({ text: value.label, value: key, @@ -575,6 +573,7 @@ const ServicePage = () => {