wangzhe преди 2 години
родител
ревизия
4370d9e74e
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/datacenter.vue

+ 4 - 2
src/views/datacenter.vue

@@ -50,7 +50,7 @@
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      </button>-->
       <!-- 右侧 -->
-      <div class="rightbar" :class="indentright" ref="right" v-show="showSearch == true">
+      <div class="rightbar" :class="indentright" ref="right" v-if="showSearch == true">
         <div class="forthis">
           <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
             <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
@@ -389,7 +389,9 @@
               // that.markersList.push(markersMap)
             }
           }
-          this.dataChat();
+          if(this.showSearch == true){
+            this.dataChat();
+          }
           that.$refs.supermap.clearM(false)
           that.$refs.supermap.setMarkers(that.markersList)
         })