From 94dc78cd9c953a8e053c47342a9eb98f315c3f73 Mon Sep 17 00:00:00 2001 From: liu <2302563948@qq.com> Date: Wed, 17 Jun 2026 13:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=AB=E5=90=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zh_CN/merchant-portal/product-category.ts | 2 +- .../merchant-portal/product-category/index.tsx | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web/locales/zh_CN/merchant-portal/product-category.ts b/web/locales/zh_CN/merchant-portal/product-category.ts index 6ebdcdc..0354ded 100644 --- a/web/locales/zh_CN/merchant-portal/product-category.ts +++ b/web/locales/zh_CN/merchant-portal/product-category.ts @@ -5,7 +5,7 @@ export default { "merchant.portal.product-category.parent_id": "上级分类", "merchant.portal.product-category.name": "分类名称", "merchant.portal.product-category.name.required": "分类名称不能为空", - "merchant.portal.product-category.slug": "别名", + "merchant.portal.product-category.slug": "标识", "merchant.portal.product-category.icon": "图标", "merchant.portal.product-category.description": "描述", "merchant.portal.product-category.sort": "排序", diff --git a/web/pages/merchant-portal/product-category/index.tsx b/web/pages/merchant-portal/product-category/index.tsx index b55d44a..6101dd7 100644 --- a/web/pages/merchant-portal/product-category/index.tsx +++ b/web/pages/merchant-portal/product-category/index.tsx @@ -30,18 +30,19 @@ const Table: React.FC = () => { required: true, rules: [{ required: true, message: t('merchant.portal.product-category.name.required') }], }, - { - title: t('merchant.portal.product-category.parent_id'), - dataIndex: 'parent_id', - valueType: 'text', - align: 'center', - }, { title: t('merchant.portal.product-category.slug'), dataIndex: 'slug', valueType: 'text', align: 'center', hideInSearch: true, + rules: [{ required: true }], + }, + { + title: t('merchant.portal.product-category.parent_id'), + dataIndex: 'parent_id', + valueType: 'text', + align: 'center', }, { title: t('merchant.portal.product-category.icon'),