问题描述 | Describe the bug
Hexo Next 主题插件,comment 和 article 接口会连续发送两个一样的请求,发送请求的代码看起来是在这一部分:
watchEffect 函数也触发了一次请求
|
if (app) app.mount(root!); |
|
|
|
updateCommentCount(); |
|
updatePageviewCount(); |
|
|
|
const stopComment = watchEffect(updateCommentCount); |
|
const stopPageview = watchEffect(updatePageviewCount); |
看起来是新版的问题,比如: link 1 link 2
这个旧版本的没问题:link 3
连续发送两个请求还会导致 Counter 表数据重复,为同一个 url 创建两条记录
问题网站 | Website URL
https://zhangnew.com/isso-to-waline.html
服务部署在哪里? | Where your waline deploy?
Docker
数据存储在哪里?| Where your comment data store?
SQLite
问题描述 | Describe the bug
Hexo Next 主题插件,
comment和article接口会连续发送两个一样的请求,发送请求的代码看起来是在这一部分:watchEffect函数也触发了一次请求waline/packages/client/src/init.ts
Lines 84 to 90 in 9387336
看起来是新版的问题,比如: link 1 link 2
这个旧版本的没问题:link 3
连续发送两个请求还会导致 Counter 表数据重复,为同一个 url 创建两条记录
问题网站 | Website URL
https://zhangnew.com/isso-to-waline.html
服务部署在哪里? | Where your waline deploy?
Docker
数据存储在哪里?| Where your comment data store?
SQLite