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 = () => {