DataFront/pages/data/all.vue

22 lines
610 B
Vue
Raw Normal View History

<script setup lang="ts">
2023-09-03 04:23:52 +00:00
const getWebArr = reactive<string[]>([])
const loading = ref(true)
$fetch("https://data.zziyu.cn/hot/webs").then((rawData)=>{
const data = rawData as unknown as string[]
data.map(m=>getWebArr.push(m))
loading.value=false
})
</script>
<template>
2023-09-02 14:40:18 +00:00
<Title>数据收集</Title>
2023-09-03 04:23:52 +00:00
<div v-loading="loading" style="min-height: 100px;display: flex;align-items: center;justify-content: center;flex-direction: column">
2023-09-02 15:15:31 +00:00
<DataTimesTop v-for="(item,index) in getWebArr" :fromWeb="item" :limit="10" :hours="1" :key="index"></DataTimesTop>
</div>
</template>
<style scoped>
</style>