没有下级,不显示

This commit is contained in:
liaoxuezhi 2019-05-23 16:13:45 +08:00
parent a4a3dd2b5c
commit 703fabf21c
1 changed files with 1 additions and 1 deletions

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 => ({