mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
【修复】修复用户未定义性别的情况下,导致前端修改个人资料默认头像异常的情况。#I56WBO
This commit is contained in:
@@ -210,7 +210,12 @@
|
||||
_this.birthdayTemporary = _this.model.birthday;
|
||||
_this.model.nickname = res.data.nickName;
|
||||
_this.model.mobile = res.data.mobile;
|
||||
_this.model.sex = _this.actionSheetList[res.data.sex - 1].name;
|
||||
|
||||
if (res.data.sex && res.data.sex == 0) {
|
||||
_this.model.sex = _this.actionSheetList[2].name;
|
||||
} else {
|
||||
_this.model.sex = _this.actionSheetList[res.data.sex - 1].name;
|
||||
}
|
||||
_this.model.avatar = res.data.avatarImage;
|
||||
} else {
|
||||
//报错了
|
||||
|
||||
Reference in New Issue
Block a user