From b4c994acbd6b08dc48cb0fd51369f2e05b44d386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=99=AF=E5=AD=A6?= <5412262+sun_jing_xue@user.noreply.gitee.com> Date: Tue, 5 Aug 2025 18:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=B1=BB=E5=87=86=E5=85=A5=20?= =?UTF-8?q?=E6=A0=91=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SupplierCategoryEntry/components/CreateModal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/supplier/admission/SupplierCategoryEntry/components/CreateModal.tsx b/src/pages/supplier/admission/SupplierCategoryEntry/components/CreateModal.tsx index 57260db..52e81c3 100644 --- a/src/pages/supplier/admission/SupplierCategoryEntry/components/CreateModal.tsx +++ b/src/pages/supplier/admission/SupplierCategoryEntry/components/CreateModal.tsx @@ -205,6 +205,8 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi useEffect(() => { if (visible) { setTreeLoading(true); + setCheckedKeys([]); + setDisabledCategories([]); categoryTree().then((res) => { const { code, data } = res; if (code == 200) { @@ -223,6 +225,7 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi onCancel={() => { form.resetFields(); setCheckedKeys([]); + setDisabledCategories([]); onCancel(); }} width="700px" @@ -307,6 +310,7 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi onClick={() => { form.resetFields(); setCheckedKeys([]); + setDisabledCategories([]); }} > 重置