Skip to content

Commit

Permalink
feat: 城市筛选器默认选中所有城市
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximu-Luya committed Mar 19, 2024
1 parent e8a9dfb commit 1d9fc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ useIntervalFn(async () => {
await store.fetch();
}, 10 * 1000);
const selectedCity = ref<CityInfo[]>([cities[0]])
const selectedCity = ref<CityInfo[]>(cities)
const switchCityFilter = (targetCity: CityInfo) => {
if (selectedCity.value.find(city => city.name == targetCity.name)) {
Expand Down

0 comments on commit 1d9fc68

Please sign in to comment.