Skip to content

Commit

Permalink
fix: uncleared history
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Aug 25, 2024
1 parent 1904ab4 commit 87f514a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export const useStore = defineStore(`store`, () => {
},
],
})
onMounted(() => {
// 清空过往历史记录
cssContent.value = ``
})
const getCurrentTab = () => cssContentConfig.value.tabs.find((tab) => {
return tab.name === cssContentConfig.value.active
})
Expand Down

0 comments on commit 87f514a

Please sign in to comment.