Procházet zdrojové kódy

fix bug: 修复切换楼层后,平面图 缩放比例不重置的问题

yunxing před 4 roky
rodič
revize
2bf05ab7d9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/components/floorMap/index.vue

+ 1 - 1
src/components/floorMap/index.vue

@@ -113,11 +113,11 @@ export default {
                         this.fParser.columnList.forEach(t => this.scene.addItem(t))
                         this.fParser.casementList.forEach(t => this.scene.addItem(t))
                         this.view.scene = this.scene
+                        this.view.fitSceneToView()
                         this.view.minScale = this.view.scale
                         if (this.$refs.canvasFun) {
                             this.$refs.canvasFun.everyScale = this.view.scale
                         }
-                        this.view.fitSceneToView()
                     })
                 } else {
                     console.log('楼层不正确')