zy-acs-flow/src/map/tool.js
@@ -934,6 +934,17 @@ } }; export const removeAreaSprite = (sprite) => { if (!sprite || sprite?.data?.type !== DEVICE_TYPE.AREA) { return; } const parent = sprite.parent || mapContainer; if (parent) { parent.removeChild(sprite); } sprite.destroy({ children: true, texture: false, baseTexture: false }); }; export const loadAreas = (curZone, setCurSprite) => { if (!mapContainer) return; clearAreas();