Vanessa 2025-08-12 11:28:22 +08:00
parent 1edd35029e
commit e103b5c2f0
2 changed files with 14 additions and 1 deletions

View file

@ -62,6 +62,8 @@ export const uninstall = (app: App, name: string, isUninstall = false) => {
});
// rm plugin
app.plugins.splice(index, 1);
// rm icons
document.querySelector(`svg[data-name="${plugin.name}"]`)?.remove();
// rm protyle toolbar
getAllEditor().forEach(editor => {
editor.protyle.toolbar.update(editor.protyle);