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) => {