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 () => {