mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-13 22:12:11 +08:00
update src/views/chart/ContentEdit/components/EditRule/index.vue.
修复画布初始化时没有滚动居中 Signed-off-by: frank <noikiy@qq.com>
This commit is contained in:
parent
f6d2c1fc52
commit
8ebde54c84
@ -225,7 +225,8 @@ watch(
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if ($app.value) {
|
if ($app.value) {
|
||||||
$app.value.addEventListener('wheel', handleWheel, { passive: false })
|
$app.value.addEventListener('wheel', handleWheel, { passive: false })
|
||||||
canvasPosCenter()
|
// canvasPosCenter()
|
||||||
|
chartLayoutStore.setItem(ChartLayoutStoreEnum.RE_POSITION_CANVAS, true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user