From 24008ce1ac748a6afad17e7fbd4cccb55896ecfa Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 14 三月 2024 15:21:04 +0800 Subject: [PATCH] # --- zy-asrs-flow/src/pages/map/utils.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js index 61a231a..6879330 100644 --- a/zy-asrs-flow/src/pages/map/utils.js +++ b/zy-asrs-flow/src/pages/map/utils.js @@ -250,6 +250,10 @@ } } +export const findSpriteByUuid = (uuid) => { + return mapContainer?.children?.find(child => child?.data?.uuid === uuid); +} + export const sensorTypeSelectOptions = (intl) => { let options = []; Object.entries(SENSOR_TYPE).forEach(([key, value]) => { -- Gitblit v1.9.1