diff --git a/src/app/babylon/tool/babylon-tool.ts b/src/app/babylon/tool/babylon-tool.ts index 7aee30a..de9b205 100644 --- a/src/app/babylon/tool/babylon-tool.ts +++ b/src/app/babylon/tool/babylon-tool.ts @@ -1,4 +1,3 @@ -import { NumberValueAccessor } from '@angular/forms'; import { AbstractMesh, Animation, diff --git a/src/app/pages/plan/plan.component.ts b/src/app/pages/plan/plan.component.ts index 31530b7..0c26628 100644 --- a/src/app/pages/plan/plan.component.ts +++ b/src/app/pages/plan/plan.component.ts @@ -772,20 +772,14 @@ export class PlanComponent implements OnInit { let isDelete = confirm("您确定要删除吗?") if (isDelete) { if (type === 1) { - this.http.delete(`${this.beforeOnePropertyData.getPropertyData().img}`).subscribe(data => { - this.beforeOnePropertyData.getPropertyData().img = "" - this.message.info("删除成功!"); - }) + this.beforeOnePropertyData.getPropertyData().img = "" + this.message.info("删除成功!"); } else if (type === 2) { - this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data => { - this.beforePlanNode.texture = "" - this.message.info("删除成功!"); - }) + this.beforePlanNode.texture = "" + this.message.info("删除成功!"); } else if (type === 3) { - this.http.delete(`${this.beforePlanNode.video}`).subscribe(data => { - this.beforePlanNode.video = "" - this.message.info("删除成功!"); - }) + this.beforePlanNode.video = "" + this.message.info("删除成功!"); } } }