From 0cc2993eb2678c29d6ce3ed908ed33ff96303d9e Mon Sep 17 00:00:00 2001 From: yaoyun8 <142570291+yaoyun8@users.noreply.github.com> Date: Thu, 7 Dec 2023 20:36:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=98=E9=87=8F=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=8E=E4=BF=9D=E5=AD=98=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=20(#110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/toolbars/save/src/js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/toolbars/save/src/js/index.js b/packages/toolbars/save/src/js/index.js index bdef0ba..0094b9d 100644 --- a/packages/toolbars/save/src/js/index.js +++ b/packages/toolbars/save/src/js/index.js @@ -12,7 +12,7 @@ import { reactive, ref } from 'vue' import { useBlock, useCanvas, useLayout, useNotify, usePage } from '@opentiny/tiny-engine-controller' -import { getSchema, setSchema } from '@opentiny/tiny-engine-canvas' +import { getSchema, setSchema, selectNode } from '@opentiny/tiny-engine-canvas' import { constants } from '@opentiny/tiny-engine-utils' import { handlePageUpdate } from '@opentiny/tiny-engine-common/js/http' @@ -77,6 +77,9 @@ export const saveCommon = (value) => { return Promise.resolve() } + // 选中画布中的页面,关闭插件、属性配置 + selectNode(null) + return isBlock() ? saveBlock(pageSchema) : savePage(pageSchema) } export const openCommon = async () => {