|
|
|
|
@ -78,7 +78,7 @@ class UserInfoDetail extends Component<any, any> {
|
|
|
|
|
city: this.props.userInfo.city, // 市
|
|
|
|
|
areaId: this.props.userInfo.areaId, // 县区
|
|
|
|
|
area: this.props.userInfo.area, // 县区
|
|
|
|
|
file: null,
|
|
|
|
|
headimg: null,
|
|
|
|
|
},
|
|
|
|
|
pickerCityValue: [],
|
|
|
|
|
// maxDate: new Date().getTime(),
|
|
|
|
|
@ -189,7 +189,7 @@ class UserInfoDetail extends Component<any, any> {
|
|
|
|
|
console.log("userInfo.headimg", userInfo.headimg);
|
|
|
|
|
console.log("indexOf", userInfo.headimg.indexOf("//tmp/"));
|
|
|
|
|
if (userInfo.headimg.indexOf("//tmp/") > -1) {
|
|
|
|
|
formData.appendFile("file", userInfo.headimg, "avatar.png");
|
|
|
|
|
formData.appendFile("headimg", userInfo.headimg, "headimg.png");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let data = formData.getData();
|
|
|
|
|
|