Skip to content

Commit

Permalink
fix: 删除文章需移除属性
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 25, 2023
1 parent de75113 commit d9d624c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Empty file added docs/人工智能.md
Empty file.
Empty file added docs/常规发布.md
Empty file.
Empty file added docs/批量分发.md
Empty file.
Empty file added docs/极速发布.md
Empty file.
5 changes: 5 additions & 0 deletions src/composables/usePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ const usePublish = () => {
setting[id] = updatedPostMeta
await updateSetting(setting)
logger.info(`[${key}] [${id}] 文章发布信息已移除`)

// 清空属性
const yamlKey = getDynYamlKey(key)
await kernelApi.setSingleBlockAttr(id, yamlKey, "")
logger.info(`[${key}] [${id}] 属性已移除`)
}
} catch (e) {
singleFormData.errMsg = t("main.opt.failure") + "=>" + e
Expand Down

0 comments on commit d9d624c

Please sign in to comment.