Skip to content

Commit

Permalink
fix: 打开评论
Browse files Browse the repository at this point in the history
  • Loading branch information
yangming committed Jun 11, 2024
1 parent 1922a22 commit 05fa281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ const loadPv = () => {
onMounted(() => {
if (globalThis?.history?.pushState) {
// gittalk()
gittalk()
loadPv()
if (!globalThis.history.pushState._flag) {
globalThis.history.pushState._flag = true
globalThis.history.pushState = function (data, title, url) {
rawHistoryPushState.call(globalThis.history, data, title, url)
// gittalk()
gittalk()
loadPv()
}
}
Expand Down

0 comments on commit 05fa281

Please sign in to comment.