fix: add block initialization logic (#1257)

This commit is contained in:
lisong 2025-03-28 20:38:43 -07:00 committed by GitHub
parent a481eff281
commit f3ed92531c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ export default {
if (isSaved()) {
await refreshBlockData(block)
getMetaApi(META_SERVICE.GlobalService).updateBlockId(block.id)
useBlock().initBlock(block, {}, isEdit)
} else {
confirm({
message: '当前画布内容尚未保存,是否要继续切换?',