From 25abc0ce6236550a9a91ac3897a46fe07f688a96 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期三, 17 十二月 2025 16:35:49 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/AreaList.jsx |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/zy-acs-flow/src/map/AreaList.jsx b/zy-acs-flow/src/map/AreaList.jsx
index 4fe41e1..e9c545c 100644
--- a/zy-acs-flow/src/map/AreaList.jsx
+++ b/zy-acs-flow/src/map/AreaList.jsx
@@ -15,6 +15,7 @@
 import CloseIcon from '@mui/icons-material/Close';
 import { PAGE_DRAWER_WIDTH } from '@/config/setting';
 import { fetchAreaList } from './http';
+import * as Tool from './tool';
 
 const AreaList = ({
     open,
@@ -37,14 +38,20 @@
         setLoading(true);
         fetchAreaList(zoneId)
             .then((list) => {
-                console.log(list);
-
                 setAreas(Array.isArray(list) ? list : []);
             })
             .finally(() => setLoading(false));
     }, [open, zoneId]);
 
     const handleItemClick = (area) => {
+        if (!area?.id) {
+            return;
+        }
+        const sprite = Tool.findAreaSpriteById(area.id);
+        if (sprite) {
+            Tool.focusAreaSprite(sprite);
+            // Tool.showSelectedEffect?.(sprite);
+        }
         onSelect?.(area);
     };
 

--
Gitblit v1.9.1