品类更改逻辑

This commit is contained in:
linxd
2025-07-23 13:37:38 +08:00
parent 6a71041400
commit 3ce3ab0036
2 changed files with 19070 additions and 1 deletions

19069
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -82,7 +82,7 @@ const CategorySelector: React.FC<CategorySelectorProps> = ({
if (!item || typeof item !== 'object') return null;
// 类型为1的节点是叶子节点只有叶子节点可选
const isLeaf = item.type === '1';
const isLeaf = item.children.length === 0;
const node: TreeSelectNode = {
title: item.categoryName || intl.formatMessage({ id: 'supplierTaskManage.categoryName.unnamed' }),
key: item.id || `key-${Math.random()}`,