This commit is contained in:
wangshiming
2021-12-13 20:42:59 +08:00
parent a77b5f8c01
commit 44a391667e
17 changed files with 1257 additions and 260 deletions

View File

@ -134,23 +134,21 @@ export class AccountComponentsCenterComponent implements OnInit {
};
}
getInfo() {
const params = {
// id: this.i.id,
};
// this.service.http.post(this.service.$api_getUserInfo, params).subscribe((res) => {
// this.infoData = res.data;
// this.infoData.avatar = [
// {
// uid: -1,
// name: 'LOGO',
// status: 'done',
// url: res.data.avatar,
// response: {
// url: res.data.avatar,
// },
// },
// ];
// });
this.service.http.post(this.service.$api_get_current_user_info).subscribe((res) => {
console.log(res)
this.infoData = res.data;
// this.infoData.avatar = [
// {
// uid: -1,
// name: 'LOGO',
// status: 'done',
// url: res.data.avatar,
// response: {
// url: res.data.avatar,
// },
// },
// ];
});
}
edit(tpye: string) {
@ -200,7 +198,7 @@ export class AccountComponentsCenterComponent implements OnInit {
formSubmit(value: any): void {
const params = { ...value };
this.service.request(`${this.service.$api_updateUserInfo}`, params).subscribe((res) => {
this.service.request(`${this.service.$api_get_current_user_info}`, params).subscribe((res) => {
if (res === true) {
this.service.msgSrv.success('保存成功');
this.getInfo();