Skip to content
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

文章目录出现问题 #171

Open
Dinosaurhou opened this issue Nov 10, 2022 · 1 comment
Open

文章目录出现问题 #171

Dinosaurhou opened this issue Nov 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Dinosaurhou
Copy link

是什么版本出现了此问题?

halo-theme-joe2.0 V1.0.10

Halo 版本

1.6.0

平台

桌面端

操作系统

Win10

浏览器

Edge

在线站点地址

www.dinosaurhou.cn

描述缺陷

文章若关闭评论之后,就无法正常显示文章目录,例如https://www.dinosaurhou.cn/2022/11/01/springaop
文章开启评论功能之后,可以正常显示文章目录,例如https://www.dinosaurhou.cn/2022/10/31/how-to-ask-questions-the-smart-way
但是也有例外情况,例如https://www.dinosaurhou.cn/2022/11/10/mu-lu-ce-shi,此文章关闭了评论,但是文章目录正常显示

如何复现

No response

期望结果

希望大佬可以修复一下,辛苦大佬

附加信息

如果文章目录不显示,则会在控制台报错,如下图所示:
image

日志文件如下:

post.min.js?v=1.0.10:1 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'addEventListener')
    at post.min.js?v=1.0.10:1:8177
    at a (post.min.js?v=1.0.10:1:7711)
    at Object.initReadLimit (post.min.js?v=1.0.10:1:8114)
    at post.min.js?v=1.0.10:1:14961
    at Array.forEach (<anonymous>)
    at HTMLDocument.<anonymous> (post.min.js?v=1.0.10:1:14890)
(匿名) @ post.min.js?v=1.0.10:1
a @ post.min.js?v=1.0.10:1
initReadLimit @ post.min.js?v=1.0.10:1
(匿名) @ post.min.js?v=1.0.10:1
(匿名) @ post.min.js?v=1.0.10:1
@Dinosaurhou Dinosaurhou added the bug Something isn't working label Nov 10, 2022
@qinhua
Copy link
Owner

qinhua commented Nov 14, 2022

已知问题,稍后会处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants