mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 03:38:03 +08:00
fix: extension installed list no correct
This commit is contained in:
parent
7146c04015
commit
3ee96e4888
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user