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

如何获取已注册的自定义节点名称列表?Error: Node with name 'custom-node' already registered. #3872

Closed
SnowfungusWang opened this issue Aug 25, 2023 · 3 comments

Comments

@SnowfungusWang
Copy link

问题描述

请问有什么办法可以获取当前注册过的自定义节点列表吗?
在vue2.x中当想在一个页面中使用两个不同的图时,由于在每个图中分别注册了自定义节点custom-node,遇到了报错:
[Vue warn]: Error in created hook: "Error: Node with name 'custom-node' already registered."
image

重现链接

重现步骤

同时渲染两个图会出现该问题

预期行为

期望:在同一个页面存在两个不同的图,有各自的注册节点列表
实际:同一页面的第二个图报错同名节点已被注册

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome
  • X6 版本: 1.31

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 25, 2023

👋 @SnowfungusWang

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.

@zzjjbbaa
Copy link

registerNode(name,cfg,true);//第三个参数设为true?

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 7, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants