没有下级,不显示

This commit is contained in:
liaoxuezhi 2019-05-23 16:13:45 +08:00
parent d488976920
commit 32b8cca638

View File

@ -251,7 +251,7 @@ export class CityPicker extends React.Component<CityPickerProps, CityPickerState
value={districtCode}
onChange={this.handleDistrictChange}
/>
) : allowCity && city[provinceCode] ? (
) : allowCity && city[provinceCode] && city[provinceCode].length ? (
<Select
disabled={disabled}
options={city[provinceCode].map(item => ({