From b05743902e7c2e74fab2aa62616a151df5ea9802 Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sat, 2 Sep 2023 22:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E6=AD=A5=E8=8E=B7=E5=8F=96webs?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/index/TopBar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/index/TopBar.vue b/components/index/TopBar.vue index 680418c..f63bab7 100644 --- a/components/index/TopBar.vue +++ b/components/index/TopBar.vue @@ -6,7 +6,10 @@ let route = useRoute() // console.log(key, keyPath) // } -const HotArray = await $fetch("https://data.zziyu.cn/hot/webs") +const HotArray = ref([]) +$fetch("https://data.zziyu.cn/hot/webs").then(data=>{ + HotArray.value=data as any +}) // console.log(HotArray)