Skip to content

feat(plugin): 支持卸载插件时保留用户数据#491

Merged
lzx8589561 merged 2 commits into
ZToolsCenter:mainfrom
guopenghui:feature/preserve-plugin-data-on-uninstall
May 14, 2026
Merged

feat(plugin): 支持卸载插件时保留用户数据#491
lzx8589561 merged 2 commits into
ZToolsCenter:mainfrom
guopenghui:feature/preserve-plugin-data-on-uninstall

Conversation

@guopenghui

@guopenghui guopenghui commented May 13, 2026

Copy link
Copy Markdown
Contributor

变更内容

为确认对话框增加了额外的勾选框,使用新的 comfirmWithExtra 函数,不影响之前使用 comfirm 函数的代码

动机

应该允许删除插件而保留数据,避免因为误操作而导致积累的用户数据全部丢失

效果截图

image

相关 issue

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a feature to allow users to optionally delete plugin data during the uninstallation process. It updates the plugin deletion API, the UI components for plugin management, and the confirmation dialog to support extra configuration items. The reviewer suggested improving type safety in the Toast component by replacing the reliance on the extra array length with an explicit isExtraMode flag and centralizing the ConfirmExtraItem interface definition to improve maintainability.

Comment thread internal-plugins/setting/src/components/common/Toast/Toast.ts Outdated
Comment thread internal-plugins/setting/src/components/common/Toast/Toast.ts
Comment thread internal-plugins/setting/src/components/common/Toast/Toast.ts Outdated
Comment thread internal-plugins/setting/src/components/common/ConfirmDialog/ConfirmDialog.vue Outdated
@lzx8589561 lzx8589561 merged commit 6a9b1a6 into ZToolsCenter:main May 14, 2026
@guopenghui guopenghui deleted the feature/preserve-plugin-data-on-uninstall branch May 17, 2026 14:03
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

Successfully merging this pull request may close these issues.

2 participants