forked from opentiny/tiny-engine
fix: 变量修改后保存页面,再次修改变量失败 (#110)
This commit is contained in:
parent
009a6d0754
commit
0cc2993eb2
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue