diff --git a/src/views/index.vue b/src/views/index.vue index ae17f51..551cd52 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -70,9 +70,9 @@ const router = useRouter() const route = useRoute() const userInfo = useLoginStore().getlogin() -let hospitals: any +const hospitals = ref([] as any) getHospitalsData().then((res: any) => { - hospitals = res + hospitals.value = res console.log(res) })