zhangyu 4 years ago
parent
commit
fb2cf80112
2 changed files with 4 additions and 4 deletions
  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.floorid = floorid
       // this.$refs.canvasFun.isShow = false
       // this.$refs.canvasFun.isShow = false
+      this.clearGraphy()
+      this.scene = new FloorScene()
       setTimeout(() => {
       setTimeout(() => {
-        this.clearGraphy()
-        this.scene = new FloorScene()
         if (this.haveFengMap == 1) {
         if (this.haveFengMap == 1) {
           this.scene.selectContainer.connect('listChange', this, this.listChange)
           this.scene.selectContainer.connect('listChange', this, this.listChange)
           this.getGraphDetail().then((res) => {
           this.getGraphDetail().then((res) => {

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

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