使用currentcity.value时得到的是undefined,可是我看currentcity里面是有value的
有人知道这是咋回事嘛
<script setup>
import { computed, hydrate, ref, unref } from "vue";
import { storeToRefs } from "pinia";
import { useRouter } from "vue-router";
import { getcityall } from "@/service/modules/city.js";
import usecitystore from "@/store/modules/city";
const usecitystor = usecitystore();
usecitystor.fetchcityinfo();
const { allcities } = storeToRefs(usecitystor);
const currentcity = computed(() => allcities.value[tabactive.value]);
console.log(currentcity.value);
console.log(currentcity);
</script>
