#
vincentlu
2025-12-17 25abc0ce6236550a9a91ac3897a46fe07f688a96
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);
    };