We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
因为直接传块id打开的话会加载很多东西,并且显示没必要显示的标题(直接取的文档id),然后看到openWindow里面有tab的参数所以想尝试一下。问题就在于这个要传进去的ITab从哪里获取,我试了一下用openTab的结果,这里我写的代码是这样的
然后就出现了下面的报错:
然后我试了下自己手搓ITab:
发现又报这个错
就真不懂这个咋用了
不管是手搓还是openTab总得有个方法吧,但是感觉也不是不让用那种,是不是有哪里没做对?
No response
- Version: 2.10.3 - Operating System: Windows - Browser (if used):
无
The text was updated successfully, but these errors were encountered:
tab 目前的使用场景如下,具体实现为: https://github.com/siyuan-note/siyuan/blob/336eaef0000e2ef63b06f9b91a2b280b906210b3/app/src/window/openNewWindow.ts ,主要是将 json 传递给 Electron 的主线程,然后再根据 json 内容新建页签。
Sorry, something went wrong.
我知道了,这里确实是有个bug,还是这个错误提示
看到它错误的源码在这里
这里在ts里doc本身是可选参数,所以应该先判断n.doc是否存在。为了验证我在参数里加了这个
就可以正常传入openTab的结果打开了
🐛 fix #9116
d5dd47a
好的,多谢。已修改。
Vanessa219
No branches or pull requests
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
因为直接传块id打开的话会加载很多东西,并且显示没必要显示的标题(直接取的文档id),然后看到openWindow里面有tab的参数所以想尝试一下。问题就在于这个要传进去的ITab从哪里获取,我试了一下用openTab的结果,这里我写的代码是这样的
然后就出现了下面的报错:
然后我试了下自己手搓ITab:
发现又报这个错
就真不懂这个咋用了
Expected result
不管是手搓还是openTab总得有个方法吧,但是感觉也不是不让用那种,是不是有哪里没做对?
Screenshot or screen recording presentation
No response
Version environment
Log file
无
More information
No response
The text was updated successfully, but these errors were encountered: