diff --git a/src/compenents/tree-category/index.tsx b/src/compenents/tree-category/index.tsx index 484bee1..940edd2 100644 --- a/src/compenents/tree-category/index.tsx +++ b/src/compenents/tree-category/index.tsx @@ -30,12 +30,7 @@ export const TreeCategory = (props: PropInterface) => { if (props.type === "no-cate") { new_arr.unshift({ key: 0, - title: ( - <> - 未分类 - {props.categoryCount[0] || 0} - > - ), + title: "未分类", }); } @@ -51,9 +46,6 @@ export const TreeCategory = (props: PropInterface) => { let name = ( <> {categories[id][i].name} - - {props.categoryCount[categories[id][i].id] || 0} - > ); arr.push({ @@ -64,9 +56,6 @@ export const TreeCategory = (props: PropInterface) => { let name = ( <> {categories[id][i].name} - - {props.categoryCount[categories[id][i].id] || 0} - > ); const new_arr: Option[] = checkArr(categories, categories[id][i].id); @@ -112,7 +101,6 @@ export const TreeCategory = (props: PropInterface) => { >