From cbbf4da0426f4ea18f2cb96195910d9073cc1f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 17 Mar 2023 09:56:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=88=86=E7=B1=BB=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=8A=A0=E6=9C=AA=E5=88=86=E7=B1=BB=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/tree-category/index.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/compenents/tree-category/index.tsx b/src/compenents/tree-category/index.tsx index 48f4a40..d92a09b 100644 --- a/src/compenents/tree-category/index.tsx +++ b/src/compenents/tree-category/index.tsx @@ -25,6 +25,15 @@ export const TreeCategory = (props: PropInterface) => { const categories = res.data.categories; if (JSON.stringify(categories) !== "{}") { const new_arr: Option[] = checkArr(categories, 0); + new_arr.unshift({ + key: 0, + title: ( +