Skip to content

Conversation

@TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Dec 18, 2025

No description provided.

@88250 88250 requested a review from Vanessa219 December 18, 2025 16:51
async uninstall() {
// 卸载插件时删除插件数据
// Delete plugin data when uninstalling the plugin
await this.removeData(STORAGE_NAME);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样再安装的时候数据就没有了。插件里面可以不用写。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

符合预期,目前的规范是要求插件卸载时删除非笔记数据。我希望在示例插件里写上之后就不用每次审核插件的时候都要重复说一遍。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

规范整理差不多就发一下。

@Vanessa219 Vanessa219 merged commit fdfefb5 into siyuan-note:main Dec 19, 2025
@Vanessa219 Vanessa219 added the enhancement New feature or request label Dec 19, 2025
@TCOTC TCOTC deleted the feat/removeData branch December 19, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants