Skip to content

Commit 155e8fd

Browse files
committed
refactor: 增加直辖市数据
1 parent f947524 commit 155e8fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/BootstrapBlazor.Region/Services/DefaultRegionService.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ private static void LoadCityData()
113113
{
114114
city = value;
115115
cities = [];
116+
117+
if(value == "北京市" || value == "天津市" || value == "上海市" || value == "重庆市")
118+
{
119+
// 北京市、天津、上海市、重庆市
120+
cities.Add(value);
121+
}
122+
116123
_citiesCache.TryAdd(value, cities);
117124
counties = null;
118125
continue;

0 commit comments

Comments
 (0)