Skip to content

Commit

Permalink
fix: 修复强制删除属性残留问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Oct 8, 2023
1 parent 4516bb7 commit 120d62f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/composables/usePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ const usePublish = () => {
setting[id] = updatedPostMeta
await updateSetting(setting)

// 清空属性
const yamlKey = getDynYamlKey(key)
await kernelApi.setSingleBlockAttr(id, yamlKey, "")
logger.info(`[${key}] [${id}] 属性已移除`)

await kernelApi.pushMsg({
msg: t("main.opt.ok"),
timeout: 2000,
Expand Down

0 comments on commit 120d62f

Please sign in to comment.