Your Name 3 жил өмнө
parent
commit
84e5452e82

+ 2 - 2
src/components/MarkerMap/index.tsx

@@ -253,7 +253,7 @@ export default defineComponent({
           });
           });
         case '单兵': {
         case '单兵': {
           var callback = () => {
           var callback = () => {
-               if(true){
+               if(marker['stat']==='online'){
                 mainstore.videoisshow = true;
                 mainstore.videoisshow = true;
                 // // try {
                 // // try {
                   // daHuaStore.DAHUAUserObj(marker["userId"]).then(deviceUser=>{
                   // daHuaStore.DAHUAUserObj(marker["userId"]).then(deviceUser=>{
@@ -709,7 +709,7 @@ export default defineComponent({
           }
           }
 
 
           if (type == "单兵") { 
           if (type == "单兵") { 
-            if (false) { 
+            if (i.stat && i.stat==='offline') { 
                nextImage1 = icon_map_dbsblx;
                nextImage1 = icon_map_dbsblx;
             }
             }
           }
           }