mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
没有下级,不显示
This commit is contained in:
parent
d488976920
commit
32b8cca638
@ -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 => ({
|
||||
|
Loading…
Reference in New Issue
Block a user