From a3a524cb74a86600a7ba143c5eb341e59bb3a17d Mon Sep 17 00:00:00 2001 From: purocean Date: Wed, 12 Jan 2022 14:17:39 +0800 Subject: [PATCH] fix: fix marked status --- src/renderer/plugins/file-tree-context-menu.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/plugins/file-tree-context-menu.ts b/src/renderer/plugins/file-tree-context-menu.ts index ff3c56ed..629ab0f2 100644 --- a/src/renderer/plugins/file-tree-context-menu.ts +++ b/src/renderer/plugins/file-tree-context-menu.ts @@ -21,6 +21,8 @@ export default { vueCtx.localMarked.value = true await ctx.doc.markDoc(node) } + + node.marked = vueCtx.localMarked.value } const isMarkdown = node.type === 'file' && node.path.toLowerCase().endsWith('.md')