Skip to content

Commit

Permalink
fix: extension installed list no correct
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Sep 9, 2022
1 parent 7146c04 commit 3ee96e4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ export class ExtensionService {
const { code, data, modules } = window.eo.installModule(id);
if (code === 0) {
this.localExtensions = modules;
this.updateExtensionIDs();
this.extensionIDs = this.updateExtensionIDs();
return true;
}
console.error(data);
return false;
}
uninstall(id): boolean {
console.log('Install module:', id);
console.log('Uninstall module:', id);
const { code, data, modules } = window.eo.uninstallModule(id);
if (code === 0) {
this.localExtensions = modules;
this.updateExtensionIDs();
this.extensionIDs = this.updateExtensionIDs();
return true;
}
console.error(data);
Expand Down

0 comments on commit 3ee96e4

Please sign in to comment.