meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
770 stars 106 forks source link

[Bug Report] "likes", "thumb-up", "thumb-down" number not updated if you click twice #74

Closed SilhDing closed 4 years ago

SilhDing commented 4 years ago

I made a new post, created an issue for it, left a comment and tried to "like" the post. It worked perfectly as I can see the number of "like" became 1.

However, when I clicked the button "like" again, the number did not turn back to 0. This problem also happened on "thumb-up" and "thumb-down" buttons. In fact, if you looked into the comments on GitHub websites, everything seems okay: the like icon is gone if you click the "like" icon twice on Vssue plugin.

This bug is not always reproducible: it happens only in some cases. I used stylus (rather than css) to customize the plugin, and I don't think I have made any changes to the core codes.

创建日志后,创建issue,然后发表评论,并点击了一个like按钮,目前为止一切正常,like的数目变成了1。

然而,当再次点击like按钮后,like的数目并没有变成0。这个问题也同样出现在thumb-up和thumb-down按钮上。事实上,在github的issue和comment页面上,会发现一切正常:如果你在Vssue上连续点击两次like,github这边comment的like会先变1再变回0。

这个bug并不是任何时候可以复现的,有时又是正常的。我自己用了stylus代码而非css以用来定制化前端,并没有改动任何的js代码。

meteorlxy commented 4 years ago

Please follow the issue template, or we cannot repro your problem