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

fix copyCommentLink comment-apis #4654

Open
wants to merge 1 commit into
base: preview-fixes
Choose a base branch
from

Conversation

imshixin
Copy link
Contributor

fix #4646

评论区又更新了
改了v1

@imshixin
Copy link
Contributor Author

这种改发无法获取到评论回复的id,有点问题

@the1812
Copy link
Owner

the1812 commented Feb 27, 2024

搞错了吧? 失效的是 v2 啊, 怎么把 v1 改了

@imshixin
Copy link
Contributor Author

。。。我看v1和现在的改法很像,以为啊b改了v1

@the1812
Copy link
Owner

the1812 commented Feb 27, 2024

看了下应该是 v2 评论区换成 Vue 3 写的了, 所以 getVueData 用的 __vueParentComponent 之类的属性不存在了
Vue 3 的 production 构建删除了 DOM 元素上的 __vueParentComponent 导致 comment-apis 拿不到数据了
得研究下 Vue 3 有没有办法从外部读取它的数据

@imshixin
Copy link
Contributor Author

https://greasyfork.org/zh-CN/scripts/449444-hook-vue3-app
试试这个,我刚刚试了下,可行

@the1812
Copy link
Owner

the1812 commented Mar 9, 2024

https://greasyfork.org/zh-CN/scripts/449444-hook-vue3-app

这个似乎只能抓到初始化的数据? 并没有评论的数据在里面
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants