diff --git a/src/routes/Userinfo/GeographicView.js b/src/routes/Userinfo/GeographicView.js index 345e6bb258ff012c8439f717aa245ebcfff4aecb..625cb6ff2d51b0986348fe4776e33c52b7199fd2 100644 --- a/src/routes/Userinfo/GeographicView.js +++ b/src/routes/Userinfo/GeographicView.js @@ -24,6 +24,14 @@ export default class GeographicView extends PureComponent { type: 'geographic/fetchProvince', }); }; + componentDidUpdate(props) { + if (!props.value && !!this.props.value && !!this.props.value.province) { + this.props.dispatch({ + type: 'geographic/fetchCity', + payload: this.props.value.province.key, + }); + } + } getProvinceOption() { return this.getOption(this.props.province); }