mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
没有下级,不显示
This commit is contained in:
parent
a4a3dd2b5c
commit
703fabf21c
@ -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