Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/core/main/editor/markdown/md-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function MdEditor() {
const { currentArticle, saveCurrentArticle, loading, isPulling, activeFilePath, matchPosition, setMatchPosition, setActiveFilePath, loadFileTree, setCurrentArticle, readArticle } = useArticleStore()
const { assetsPath, contentTextScale } = useSettingStore()
const { fetchMarks } = useMarkStore()
const { fetchTags, getCurrentTag } = useTagStore()
const [floatBarPosition, setFloatBarPosition] = useState<{left: number, top: number} | null>(null)
const [selectedText, setSelectedText] = useState<string>('')
const { theme } = useTheme()
Expand Down Expand Up @@ -1113,6 +1114,9 @@ export function MdEditor() {
await delMark(mark.id)
// 刷新记录列表
await fetchMarks()
// 刷新标签统计
await fetchTags()
getCurrentTag()
}
} catch (error) {
console.error('Failed to delete mark:', error)
Expand Down