src/app/routes/users/installer/edit/edit.component.ts
@@ -11,7 +11,7 @@ }) export class UserInstallerEditComponent implements OnInit { i: any; user: any; gender: string[] = [ '男', '女' ]; constructor( @@ -21,8 +21,8 @@ public http: _HttpClient) { } ngOnInit() { if (this.i.id > 0) { this.http.get('./assets/pois.json').subscribe(res => this.i = res.data[0]); if (this.user.id > 0) { this.http.get('./assets/pois.json').subscribe(res => this.user = res.data[0]); } }