处理修改属性时改变焦点导致图像消失问题

This commit is contained in:
dong 2023-12-06 15:17:53 +08:00
parent 7eda7c0271
commit c3e7a1f1fe

View File

@ -17,7 +17,7 @@ export function useFormData<T extends GraphicDataBase>(
});
function onUpdate() {
const graphic = app.selectedGraphics[0];
const graphic = app.queryStore.queryById(data.id);
if (graphic) {
app.updateGraphicAndRecord(graphic, toRaw(data));
}