|
@@ -206,6 +206,9 @@ export default {
|
|
|
if (res?.dimensions.height) {
|
|
if (res?.dimensions.height) {
|
|
|
formData.props.height = res.dimensions.height
|
|
formData.props.height = res.dimensions.height
|
|
|
formData.props.width = res.dimensions.width
|
|
formData.props.width = res.dimensions.width
|
|
|
|
|
+ // 去除小数位
|
|
|
|
|
+ formData.props.pivot.x = Math.round(res.dimensions.width / 2)
|
|
|
|
|
+ formData.props.pivot.y = Math.round(res.dimensions.height / 2)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|