From b72f4dae28961fd8246101998a2f4e78775dd996 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 6 Jun 2025 19:33:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(vue-runtime-help):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=89=87=E4=B8=AD=E7=BB=84=E4=BB=B6=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E4=BD=8D=E7=BD=AE=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/vue-runtime-help/package.json | 2 +- runtime/vue-runtime-help/src/hooks/use-editor-dsl.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/vue-runtime-help/package.json b/runtime/vue-runtime-help/package.json index 1d65c2ed..c028d0f7 100644 --- a/runtime/vue-runtime-help/package.json +++ b/runtime/vue-runtime-help/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.2", + "version": "1.1.3", "name": "@tmagic/vue-runtime-help", "type": "module", "sideEffects": false, diff --git a/runtime/vue-runtime-help/src/hooks/use-editor-dsl.ts b/runtime/vue-runtime-help/src/hooks/use-editor-dsl.ts index bcebf1d2..0222f75c 100644 --- a/runtime/vue-runtime-help/src/hooks/use-editor-dsl.ts +++ b/runtime/vue-runtime-help/src/hooks/use-editor-dsl.ts @@ -22,7 +22,9 @@ export const useEditorDsl = (app = inject('app'), win = window) => { watch(pageConfig, async () => { await nextTick(); - const page = document.querySelector('.magic-ui-page'); + const page = + document.querySelector('.magic-ui-page') || + document.querySelector('.magic-ui-page-fragment'); page && win.magic?.onPageElUpdate(page); });