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