windingwind / zotero-plugin-toolkit

Toolkit for Zotero Plugin Developers.
https://www.npmjs.com/package/zotero-plugin-toolkit
MIT License
115 stars 13 forks source link

[DevBug] 单独注册itemBox的row,不显示 #32

Closed raykr closed 1 year ago

raykr commented 1 year ago

问题描述: 使用ztoolkit.ItemBox.register单独注册一个info row的时候是不显示的,查看log,是由于globalCache为undefined导致。 CleanShot 2023-09-09 at 11 29 39@2x

raykr commented 1 year ago

貌似是由于在初始化的时候用了个连续赋值,连续赋值有坑,参见这里 CleanShot 2023-09-09 at 11 45 49@2x 对于this.globalCache的赋值单独一行,就正常了

image
raykr commented 1 year ago

pr #33

windingwind commented 1 year ago

感谢。这部分的api即将由正式的zotero内实现替代,见https://github.com/zotero/zotero/pull/3255

raykr commented 1 year ago

风大👍