Git Product home page Git Product logo

Comments (5)

ToUNVRSe avatar ToUNVRSe commented on July 23, 2024 1

(今天看见,机房写,杂)
这是所有评论系统的已知问题,可以确认的无一支持 pjax
我也是今天才知道这个大坑
(以下为 gitalk 测试结果)
问题在于在 pjax push 页面的时候已经初始化好的对象里面的页面 id 设置并没有刷新
目前有两个思路:

  1. 查找 javascript 搞出构造函数重新生成
  2. 直接改进对象里

Valine 的构造对象机制不一样我目前无法测试

from hexo-theme-arknights.

Yue-plus avatar Yue-plus commented on July 23, 2024

应该是由于 pajx 引起的缓存问题。
经测试, Ctrl + F5 强制刷新页面后没有问题

要禁用 pajx 可以在 Hexo 目录下 _config.arknights.yml 文件中写:

# pjax 支持
pjax:
  enable: false
  version: '0.2.8'

from hexo-theme-arknights.

majianyu2007 avatar majianyu2007 commented on July 23, 2024

刷新页面确实可以,但是会导致哪一个页面也没有评论
之前看到Valine的Issue有类似的问题,说和next自带的阅读量统计有冲突,将next升级到最新版本用Valine的阅读量就行,但在本主题中未找到相关设置
关闭pjax后可用

from hexo-theme-arknights.

majianyu2007 avatar majianyu2007 commented on July 23, 2024

#159

from hexo-theme-arknights.

Yue-plus avatar Yue-plus commented on July 23, 2024

1.17.0 中已修复

from hexo-theme-arknights.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.