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

[问题反馈]: 设置当前浏览器不计入访问统计引起bug #261

Closed
dingdangdog opened this issue Mar 22, 2023 · 2 comments
Closed
Labels
问题反馈 反馈问题帮助我们改进 VanBlog

Comments

@dingdangdog
Copy link
Contributor

问题描述 | Describe the bug

bug出现原因

  • 使用window.localStorage.setItem("noViewer", true);设置当前浏览器访问不计入访问统计

bug现象

  1. 使用后,网站底部的访客数和访问数统计数字都显示为0了。
  2. 使用后,当前浏览器访问某个文章时,虽然没有被真实记录进数据库,但当次进入文章被计算进了页面显示值。比如首页看到某个文章访问次数是3,进入文章详情页面后,文章被访问次数应该还是3(因为我忽略当前浏览器统计了),但实际上显示的访问次数是4,回到首页刷新,该文章访问次数仍然是3。

该bug在前几个版本一直存在,我看0.50的更新日志里也没有说明修复。

复现网址 | Website URL

https://oldmoon.top

版本 | Version

v0.49.0

部署方式? | How do you deploy vanblog?

Docker 部署(文档默认)

@dingdangdog dingdangdog added the 问题反馈 反馈问题帮助我们改进 VanBlog label Mar 22, 2023
@dingdangdog dingdangdog changed the title [问题反馈]: 设置当前浏览器不计入访问引起bug [问题反馈]: 设置当前浏览器不计入访问统计引起bug Mar 22, 2023
@Mereithhh
Copy link
Owner

收到,我看看修修,主要是没人提,我想着没人用就没管这块233

@Mereithhh
Copy link
Owner

修了修了。这次发版一起上了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
问题反馈 反馈问题帮助我们改进 VanBlog
Projects
None yet
Development

No branches or pull requests

2 participants