diff --git a/components.d.ts b/components.d.ts
index c50cade30a785a16d96fe1d8718943796ebd66a0..0ced75b882949ae4ff63f80553a7fe4527c6d4dd 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -10,7 +10,6 @@ declare module 'vue' {
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
- VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanIcon: typeof import('vant/es')['Icon']
VanIndexAnchor: typeof import('vant/es')['IndexAnchor']
diff --git a/src/stores/city.ts b/src/stores/city.ts
index cc6fbda584de50db9cc6693e9a657f195b7cf2a9..22cfc678eea95dccae6cba97aefa68ac9f9a978a 100644
--- a/src/stores/city.ts
+++ b/src/stores/city.ts
@@ -34,6 +34,9 @@ export const useCity = defineStore("city", {
// 返回 result
return result.sort((a, b) => (a.groupName > b.groupName ? 1 : -1));
},
+ indexList(): string[] {
+ return (this.cityGroup as any).map((item: any) => item.groupName);
+ },
},
actions: {
diff --git a/src/views/city/index.vue b/src/views/city/index.vue
index 275c3dbdc49277252cad3812dbecf50398073771..685e4f58774ed55c87fe4f2725b1e5cc1931e916 100644
--- a/src/views/city/index.vue
+++ b/src/views/city/index.vue
@@ -27,7 +27,7 @@ const keyword = ref("");