You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
问题描述
主题使用pjax,切换页面时不刷新整个页面。会出现下面的问题:
第一次加载页面,评论框可以正常使用,但是切换其他页面后(没有刷新整个页面),评论框下就显示
TypeError: Cannot read property 'Query' of undefined
,需要刷新整个页面才能使用。报错位置:new _root.v.Query('Comment');
这个 _root 中没有 v 这个属性。
刷新整个页面时,第一次执行到这句话是有 v 这个属性。
但是异步加载第二个页面后,第二次执行到这句话是没有 v 这个属性的。
报错效果
第一次访问加载成功,并且可以评论。
切换到其他文章就会出现问题。
博客系统:
hexo
主题:hexo-theme-3-hexo
valine版本:
v1.1.9-beta4
配置信息:
The text was updated successfully, but these errors were encountered: