From c3e7a1f1fe1391c18ee84ac2c6692b5b2180e8ee Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 6 Dec 2023 15:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BF=AE=E6=94=B9=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=97=B6=E6=94=B9=E5=8F=98=E7=84=A6=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=9B=BE=E5=83=8F=E6=B6=88=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DrawAppFormUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DrawAppFormUtils.ts b/src/components/DrawAppFormUtils.ts index 4496ac2..be1a9ca 100644 --- a/src/components/DrawAppFormUtils.ts +++ b/src/components/DrawAppFormUtils.ts @@ -17,7 +17,7 @@ export function useFormData( }); function onUpdate() { - const graphic = app.selectedGraphics[0]; + const graphic = app.queryStore.queryById(data.id); if (graphic) { app.updateGraphicAndRecord(graphic, toRaw(data)); }