Comments (11)
为了提高容错率可以不只取第一个,多取几个,但是感觉不是个彻底的解决办法
from vssue.
提供一下Vssue的版本,另外如果在用Vuepress 1.x的话也可能会有各种奇怪的问题。方便的话最好建一个demo仓库帮你看一下。
这个问题我之前遇到过类似的,但是是某种情况下会创建2次,和设置Vuepress页面的key有关。
可以在博文页面,大概是post组件上面,加一个:key="$page.title"
试一下
from vssue.
谢谢你的帮助,按照你的提示,我已经解决问题了
from vssue.
之前 Vssue 监听传入的 title
, issueId
, options
,如果有变化就会重新初始化。
如果没有设置 key
,可能导致前一个页面的 Vssue 还没有销毁就监听到了 $page.title
的变化,试图创建新的 Issue。然后后一个页面的 Vssue 创建后,也试图创建新的 Issue。
考虑了一下,监听 props 重新初始化 Vssue 可能不是很必要的功能,准备去掉,只按照最初传入的 props 来加载评论。
from vssue.
同样也出现了这个问题,然而却只有个别文章是如此。
https://github.com/kenberkeley/blog/issues
from vssue.
@kenberkeley 看起来和这个不像是同一个问题。目前是只有一篇文章如此,还是某篇文章之后的所有文章都这样?
from vssue.
只有其中一篇是如此。。。所以我指定 vssue-id 了😂
from vssue.
from vssue.
知道问题了……
目前用的是 Github 的搜索 API ,以 issue 标题为搜索条件,只取第一个搜索结果,看标题是否完全相等。
然而你的这篇文章标题,搜出来的结果是第二个。估计是因为“电面篇”多命中了一个“面”字,搜索权重被 Github 提高了…
from vssue.
from vssue.
那暂时还是。。。指定 ID 吧。。。
from vssue.
Related Issues (20)
- 什么时候支持 vuepress2? HOT 2
- [Question] How to integrate with Vitepress? HOT 2
- 一切配置正常后页面无法评论 HOT 3
- [Feature Request] Add a hook that can modify then oauth url query params
- [Question] 可以登录,无法评论 HOT 2
- [Question] Vssue样式不对? HOT 1
- 请问github.io的pages无法使用吗 HOT 1
- 请教一下有没有从gitalk迁移到vssue的相关文档 HOT 2
- [Feature Request] MathJax rendering HOT 1
- vuepress 2.2 什么时候支持呢[Question] HOT 1
- [Bug Report] gitee 用不了 HOT 1
- [Bug Report] 用了gitee,github都不行,没什么用。 HOT 1
- [Feature Request] 大佬,能否考虑加个“收到新评论后邮件提醒”的功能? HOT 1
- gitlab cant work when i click new issue[Bug Report]
- [Bug Report] Vue url 404
- [Feature Request] 能否添加对文章的点赞功能
- [Feature Request] Add configurable Gitea instances
- [Bug Report] Vssue is not defined HOT 1
- how can vitepress use vssue smoothly
- Migrate Vssue of Vue3-based
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vssue.