Commit e9636c2d authored by mercury233's avatar mercury233

fix import zst create dir

parent f1eab13f
Pipeline #15352 passed with stages
in 5 minutes and 4 seconds
......@@ -217,6 +217,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
if (ext === '.zst') {
try {
console.log('extracting import file');
await this.appsService.createDirectory(option.installDir);
await new Promise((resolve, reject) => {
targetApp.status.status = 'installing';
this.appsService.extract(this.import_path, option.installDir).subscribe(
......@@ -251,6 +252,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
} catch (e) {
console.error(e);
new Notification(targetApp.name, {body: '导入失败 ' + e.message});
targetApp.reset();
}
}
......
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