diff --git a/frontend/src/pages/MerchantCenter.tsx b/frontend/src/pages/MerchantCenter.tsx index 6f1a3d5..9b1452f 100644 --- a/frontend/src/pages/MerchantCenter.tsx +++ b/frontend/src/pages/MerchantCenter.tsx @@ -983,12 +983,32 @@ export default function MerchantCenter({ fixedTab, title = '商户中心' }: Mer ] const fixedTabContent = tabItems.find((item) => item.key === fixedTab)?.children + const parentCategoryMap: Record = { + products: '商品管理', + orders: '订单管理', + wallet: '积分管理', + api: '开放 API', + callbacks: '开放 API', + members: '员工管理', + } + + const currentTabKey = fixedTab ?? activeTab + const parentGroup = parentCategoryMap[currentTabKey] + + const computedBreadcrumbs = useMemo(() => { + const pageTitle = title === '商品' ? '商品列表' : title + if (parentGroup) { + return [{ title: parentGroup }, { title: pageTitle }] + } + return [{ title: pageTitle }] + }, [parentGroup, title]) + return (
} loading={loading} onClick={loadAll}> 刷新 diff --git a/frontend/src/pages/PlatformMerchants.tsx b/frontend/src/pages/PlatformMerchants.tsx index 62adfda..4f0f25b 100644 --- a/frontend/src/pages/PlatformMerchants.tsx +++ b/frontend/src/pages/PlatformMerchants.tsx @@ -318,7 +318,7 @@ export default function PlatformMerchants() {