Skip to content

Commit f3ed925

Browse files
authored
fix: add block initialization logic (#1257)
1 parent a481eff commit f3ed925

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/plugins/block/src/Main.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ export default {
326326
if (isSaved()) {
327327
await refreshBlockData(block)
328328
getMetaApi(META_SERVICE.GlobalService).updateBlockId(block.id)
329+
useBlock().initBlock(block, {}, isEdit)
329330
} else {
330331
confirm({
331332
message: '当前画布内容尚未保存,是否要继续切换?',

0 commit comments

Comments
 (0)