We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当点击进入某篇文章后,使用浏览器的后退,回到博客主页,此时任何文章,都无法点击。
The text was updated successfully, but these errors were encountered:
原因是,按下后退按钮后回到博客主页时自动执行的 rerender() 内,有如下判断
rerender()
pagic/src/plugins/script_index.js
Lines 79 to 82 in 61c6344
该判断中,lastProps.layoutPath !== props.layoutPath 成立,只改变了地址栏的 URL 就触发 return 而 loading 没有被置为 false,在下一次点击链接触发 rerender() 时,下面的判断使得函数无法运行到后续跳转的部分
lastProps.layoutPath !== props.layoutPath
return
loading
false
Lines 57 to 59 in 61c6344
Sorry, something went wrong.
xcatliu
No branches or pull requests
当点击进入某篇文章后,使用浏览器的后退,回到博客主页,此时任何文章,都无法点击。
The text was updated successfully, but these errors were encountered: