沈斌
2017-12-19 0e1e92f2e14b07942f2d8c21b4d96468322aecfe
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]);
    }
  }