-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
与twikoo新版的兼容问题 #678
Labels
bug
Something isn't working
Comments
const loadTwikoo = (bool = false) => {
if (typeof twikoo === 'object') {
// 这一行执行的时候,location.pathname 是不是还没有变成新页面的 pathname?导致加载的还是上一页的评论。
init()
bool && $countDom && setTimeout(getCount,0)
} else {
getScript('!{theme.CDN.twikoo}').then(()=> {
init()
bool && $countDom && setTimeout(getCount,0)
})
}
} |
打开所有页面都是没有评论,如果有的话刷新可以显示出来,不论上一个页面是什么都这样 |
應該不關 twikoo1.4.9 的事 你可以暫時這樣解決 把 comments. lazyload 開了
|
恩 location.pathname 還是上一個頁面的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to create a Bug report
Butterfly Information
Butterfly Version: 3.8.3
Platform: windows
Browser: edge
与
twikoo1.4.9
有一定的兼容问题,详情见:twikoojs/twikoo#237The text was updated successfully, but these errors were encountered: