品类更改逻辑
This commit is contained in:
19069
pnpm-lock.yaml
generated
Normal file
19069
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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()}`,
|
||||
|
Reference in New Issue
Block a user