From 1fa4310f3a865b557569584702a047631b0967e4 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期二, 26 三月 2024 14:00:25 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/utils.js |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js
index eed6cfd..a54f4b1 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -369,7 +369,6 @@
                 sprite.scale.set(item.scaleX, item.scaleY);
                 sprite.rotation = rotationParseNum(item.rotation);
 
-                // sprite.tint = '#000';
                 mapContainer.addChild(sprite);
             }
         })
@@ -490,6 +489,8 @@
     }
     if (showColor) {
         sprite.tint = showColor;
+    } else {
+        sprite.tint = 0xFFFFFF;  // recovery
     }
     return showColor;
 }
@@ -500,4 +501,12 @@
             resolve(true);
         }, time);
     });
-};
\ No newline at end of file
+};
+
+export const isNullOfUndefined = (param) => {
+    if (null === param || undefined === param) {
+        return true;
+    } else {
+        return false;
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.1