zhangyu преди 4 години
родител
ревизия
fb2cf80112
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      src/views/overview/MapOther.vue
  2. 2 2
      src/views/overview/MapView.vue

+ 2 - 2
src/views/overview/MapOther.vue

@@ -156,9 +156,9 @@ export default {
       });
       // this.floorid = floorid
       // this.$refs.canvasFun.isShow = false
+      this.clearGraphy()
+      this.scene = new FloorScene()
       setTimeout(() => {
-        this.clearGraphy()
-        this.scene = new FloorScene()
         if (this.haveFengMap == 1) {
           this.scene.selectContainer.connect('listChange', this, this.listChange)
           this.getGraphDetail().then((res) => {

+ 2 - 2
src/views/overview/MapView.vue

@@ -155,9 +155,9 @@ export default {
       });
       // this.floorid = floorid
       // this.$refs.canvasFun.isShow = false
+      this.clearGraphy()
+      this.scene = new FloorScene()
       setTimeout(() => {
-        this.clearGraphy()
-        this.scene = new FloorScene()
         if (this.haveFengMap == 1) {
           this.scene.selectContainer.connect('listChange', this, this.listChange)
           this.getGraphDetail().then((res) => {