|
@@ -188,7 +188,11 @@ export default {
|
|
|
// emit 缩放比例 this.scale / oldScale
|
|
|
const oldScale = this.scale
|
|
|
this.scale = Number((oldScale + type * this.scaleStep).toFixed(2))
|
|
|
- bus.$emit('changeScale', this.scale / oldScale)
|
|
|
+ if ( 0 < oldScale && oldScale < 99) {
|
|
|
+ bus.$emit('changeScale', this.scale / oldScale)
|
|
|
+ } else {
|
|
|
+ bus.$emit('changeScale', 1)
|
|
|
+ }
|
|
|
},
|
|
|
FocusItemChanged(itemMsg) {
|
|
|
this.focusItem = null;
|