-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
vue2.x typescript 无法渲染自定义组件,疑似错误的引用了vue-router,推测$router全局污染?因为我看x6源码中有router相关声明 #1947
Comments
👋 @xzhz Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
x6 的 router 和 页面路由不是一回事,可以给个复现的 demo。 |
@xzhz hi, 遇到了相同问题,请问解决了吗?跟 x6 有关系吗? |
@xzhz @chafel
|
@lloydzhou 使用你的 teleport 方案能否访问到 $router 呢? |
新版本的x6-vue-shape内部的useTeleport在vue3下起作用,vue2.x不支持。 如果vue3.x,使用useTeleport应该是可以的。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
在vue2.x 版本script语法中正常使用,但是在vue2.x ts语法中报告router错误。
在Graph.registerNode时并没有报错
报错时机在graph.addNode({...node})是
Your Example Website or App
无
Steps to Reproduce the Bug or Issue
如上所示
Expected behavior
正常
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: