Skip to content

Commit

Permalink
fix: 变量修改后保存页面,再次修改变量失败 (opentiny#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyun8 authored Dec 7, 2023
1 parent 009a6d0 commit 0cc2993
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/toolbars/save/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -77,6 +77,9 @@ export const saveCommon = (value) => {
return Promise.resolve()
}

// 选中画布中的页面,关闭插件、属性配置
selectNode(null)

return isBlock() ? saveBlock(pageSchema) : savePage(pageSchema)
}
export const openCommon = async () => {
Expand Down

0 comments on commit 0cc2993

Please sign in to comment.