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

bug: WebUI.addEntry 的 data 参数问题 #1

Open
kal-storm opened this issue Jul 4, 2024 · 0 comments
Open

bug: WebUI.addEntry 的 data 参数问题 #1

kal-storm opened this issue Jul 4, 2024 · 0 comments

Comments

@kal-storm
Copy link

在 addEntry 的定义中给出了两个参数,其中 data 虽然是可选参数,但如果 data 不传参,将引发 JSON 无法解析 undefined 的问题:
image
这个问题亦会使得当前导入的插件实现无法正常被识别。

目前似乎只能赋予 data 参数一个没有意义的值,如图:
image
或许需要为 data 增加一些检查逻辑,或是修改参数的定义?

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

No branches or pull requests

1 participant