沈斌
2017-12-20 15cf2eeaa23866abccc1ad72df6d636572dc420d
src/app/routes/users/installer/edit/edit.component.ts
@@ -21,9 +21,7 @@
  ngOnInit() {
    if (this.user.id > 0) {
      this.http.get(environment.SERVER_BASH_URL + '/user/operate_user/' + this.user.id).subscribe((res: any) => {
          this.user = res.data[0];
      });
      this.http.get(environment.SERVER_BASH_URL + '/user/operate_user/' + this.user.id).subscribe((res: any) => this.user = res.data );
    }
  }