fix: 变量修改后保存页面,再次修改变量失败 (#110)

This commit is contained in:
yaoyun8 2023-12-07 20:36:53 +08:00 committed by GitHub
parent 009a6d0754
commit 0cc2993eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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