From 092cf2f69e08d913c78ae7fddcddde6b969253ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 21 Mar 2023 14:38:50 +0800 Subject: [PATCH] =?UTF-8?q?tree=E7=BB=84=E4=BB=B6=E5=88=9D=E6=AD=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/tree-category/index.tsx | 14 +------------- src/compenents/upload-image-button/index.tsx | 11 +++++------ src/index.less | 2 +- 3 files changed, 7 insertions(+), 20 deletions(-) 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) => { >