update src/views/chart/ContentEdit/components/EditRule/index.vue.

修复画布初始化时没有滚动居中

Signed-off-by: frank <noikiy@qq.com>
This commit is contained in:
frank 2024-04-26 15:50:37 +00:00 committed by Gitee
parent f6d2c1fc52
commit 8ebde54c84
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -225,7 +225,8 @@ watch(
onMounted(() => {
if ($app.value) {
$app.value.addEventListener('wheel', handleWheel, { passive: false })
canvasPosCenter()
// canvasPosCenter()
chartLayoutStore.setItem(ChartLayoutStoreEnum.RE_POSITION_CANVAS, true)
}
})