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