From 12e472923eac46dbf45eb106d18c38fb6e058d63 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 28 Jul 2025 15:18:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=A7=E5=93=81=E6=A0=91:=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=A4=9A=E5=9F=8E=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductsTree.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/products/Detail/ProductsTree.jsx b/src/views/products/Detail/ProductsTree.jsx index bcb12b3..fbd44fc 100644 --- a/src/views/products/Detail/ProductsTree.jsx +++ b/src/views/products/Detail/ProductsTree.jsx @@ -110,6 +110,9 @@ const ProductsTree = ({ onNodeSelect, ...props }) => { }, [productsTypes, agencyProducts]); useEffect(() => { + if (isEmpty(editingProduct)) { + return () => {}; + } const allKeysWithCity = [...editingProduct.info.city_list, { id: editingProduct.info.city_id, name: editingProduct.info.city_name }].map( (city) => `${editingProduct.info.id}-${city.id}` );