|
@@ -179,9 +179,6 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.isQuerying = false;
|
|
|
console.log("success");
|
|
|
- // 设置初始化缩放比例
|
|
|
- this.initScale = this.view.scale;
|
|
|
- bus.$emit("initScale", this.view.scale);
|
|
|
});
|
|
|
} else {
|
|
|
console.log("楼层不正确");
|
|
@@ -264,6 +261,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.view.fitSceneToView();
|
|
|
+ // 设置初始化缩放比例
|
|
|
+ this.initScale = this.view.scale;
|
|
|
+ this.view.maxScale = this.initScale * 10;
|
|
|
+ this.view.minScale = this.initScale / 10;
|
|
|
+ bus.$emit("initScale", this.view.scale);
|
|
|
bus.$emit("elementDataChange", this.scene);
|
|
|
}
|
|
|
});
|