Commit 18a60acb authored by wudizhanche1000's avatar wudizhanche1000

Fix 重复安装问题

parent e0a6502e
...@@ -97,12 +97,16 @@ export class AppDetailComponent implements OnInit { ...@@ -97,12 +97,16 @@ export class AppDetailComponent implements OnInit {
let options = this.installConfig; let options = this.installConfig;
let dependencies = currentApp.findDependencies(); let dependencies = currentApp.findDependencies();
let apps = dependencies.concat(currentApp).filter((app) => !app.isInstalled()); let apps = dependencies.concat(currentApp).filter((app) => {
return !app.isInstalled()
});
for (let reference of options.references) { for (let reference of options.references) {
if (reference.install) { if (reference.install && !reference.app.isInstalled()) {
apps.push(reference.app); apps.push(reference.app);
apps.push(...reference.app.findDependencies()) apps.push(...reference.app.findDependencies().filter((app) => {
return !app.isInstalled()
}))
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment