From 0f5cb44e0e721a6d4f88108457e791c75a3cae42 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 20 Nov 2024 19:08:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=BE=E8=A1=A8=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=88=B0=E6=9C=80=E7=BB=88=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/canvas/DeCanvas.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/canvas/DeCanvas.vue b/core/core-frontend/src/views/canvas/DeCanvas.vue index 82351531ba..f698f2d6c2 100644 --- a/core/core-frontend/src/views/canvas/DeCanvas.vue +++ b/core/core-frontend/src/views/canvas/DeCanvas.vue @@ -98,7 +98,9 @@ const handleNewFromCanvasMain = newComponentInfo => { adaptCurThemeCommonStyle(component) nextTick(() => { cyGridster.value.addItemBox(component) //在适当的时候初始化布局组件 - scrollTo(component.y) + nextTick(() => { + scrollTo(component.y) + }) }) snapshotStore.recordSnapshotCache('renderChart', component.id) }