Skip to content

Commit

Permalink
fix: tab changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Jan 15, 2025
1 parent 5b8b549 commit 31f5137
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/components/CodemirrorEditor/CssEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function tabChanged(tabName: string | number) {
}
tabHistory.value = [tabHistory.value[1], tabName as string]
store.tabChanged(tabName as string)
}
</script>

Expand Down
1 change: 0 additions & 1 deletion src/components/CodemirrorEditor/EditorHeader/PostInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ async function prePost() {
form.value = {
...auto,
}
console.log(form.value, `====`)
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,9 @@ export const useStore = defineStore(`store`, () => {
renderer.reset({ citeStatus: isCiteStatus.value, legend: legend.value, isUseIndent: isUseIndent.value, countStatus: isCountStatus.value })

const { markdownContent, readingTime: readingTimeResult } = renderer.parseFrontMatterAndContent(editor.value!.getValue())
console.log(`Reading time result:`, readingTimeResult)
readingTime.value = readingTimeResult
let outputTemp = marked.parse(markdownContent) as string

console.log(readingTime.value)

// 阅读时间及字数统计
outputTemp = renderer.buildReadingTime(readingTimeResult) + outputTemp

Expand Down

0 comments on commit 31f5137

Please sign in to comment.