|
@@ -80,7 +80,7 @@ class PicturesWall extends React.Component {
|
|
|
}
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (nextProps.lifePhotoList && this.state.propsbool) {
|
|
|
- this.state.fileList = nextProps.lifePhotoList;
|
|
|
+ this.state.fileList = nextProps.lifePhotoList || [];
|
|
|
this.state.propsbool = false;
|
|
|
}
|
|
|
}
|
|
@@ -134,7 +134,7 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
personPortraitUrl: data.data.personPortraitUrl,
|
|
|
address: data.data.postalAddress,
|
|
|
postcode: data.data.postcode,
|
|
|
- lifePhotoList: theArr
|
|
|
+ lifePhotoList: theArr || []
|
|
|
});
|
|
|
}
|
|
|
}.bind(this),
|
|
@@ -145,7 +145,8 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
loading: false,
|
|
|
- livePicUrlArr: []
|
|
|
+ livePicUrlArr: [],
|
|
|
+ lifePhotoList: []
|
|
|
};
|
|
|
},
|
|
|
handleSubmit(e) {
|
|
@@ -242,7 +243,7 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
label="居住地"
|
|
|
>
|
|
|
{getFieldDecorator('theAddress', {
|
|
|
- initialValue: this.state.theAddress || null
|
|
|
+ initialValue: this.state.theAddress || []
|
|
|
})(
|
|
|
<Cascader options={areaSelect()} />
|
|
|
)}
|