2023-08-27 07:09:25 +00:00
|
|
|
<script setup lang="ts">
|
2023-08-27 10:15:04 +00:00
|
|
|
let route = useRoute()
|
|
|
|
// import { ref } from 'vue'
|
2023-08-27 07:09:25 +00:00
|
|
|
|
|
|
|
// const handleSelect = (key: string, keyPath: string[]) => {
|
|
|
|
// console.log(key, keyPath)
|
|
|
|
// }
|
2024-03-09 01:46:00 +00:00
|
|
|
const dataLoading = ref<boolean>(false)
|
2023-09-02 14:31:23 +00:00
|
|
|
const HotArray = ref([])
|
2024-03-09 01:46:00 +00:00
|
|
|
// $fetch("https://data.zziyu.cn/hot/webs").then(data=>{
|
|
|
|
// HotArray.value=data as any
|
|
|
|
// dataLoading.value=false
|
|
|
|
// })
|
2023-09-01 17:54:56 +00:00
|
|
|
// console.log(HotArray)
|
2024-03-09 01:46:00 +00:00
|
|
|
// dataLoading.value=true
|
2023-08-27 07:09:25 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-09-02 02:58:39 +00:00
|
|
|
<!-- <Title>ZZIYU DATA</Title>-->
|
2023-08-27 10:15:04 +00:00
|
|
|
<client-only>
|
|
|
|
<el-menu
|
|
|
|
:default-active="route.path"
|
|
|
|
class="el-menu-demo"
|
|
|
|
mode="horizontal"
|
|
|
|
:router="true"
|
|
|
|
>
|
|
|
|
<el-menu-item index="/">ZZIYU DataWeb</el-menu-item>
|
|
|
|
<div class="flex-grow" />
|
|
|
|
<el-sub-menu index="/data/all">
|
|
|
|
<template #title>数据收集</template>
|
|
|
|
<el-menu-item index="/data/all">总览</el-menu-item>
|
2023-09-03 04:13:58 +00:00
|
|
|
<el-menu-item v-if="dataLoading" v-loading="dataLoading">列表</el-menu-item>
|
2023-09-01 17:54:56 +00:00
|
|
|
<el-menu-item v-for="(item,index) in HotArray" :key="index" :index="'/data/'+item">{{item}}</el-menu-item>
|
|
|
|
<!-- <el-menu-item index="/data/bilibili">bilibili</el-menu-item>-->
|
|
|
|
<!-- <el-menu-item index="/data/baidu">baidu</el-menu-item>-->
|
2023-08-27 10:15:04 +00:00
|
|
|
</el-sub-menu>
|
|
|
|
<el-sub-menu index="/tools">
|
|
|
|
<template #title>工具</template>
|
|
|
|
<el-menu-item index="/tools/qqazk/">笔顺码字典</el-menu-item>
|
2023-09-09 10:47:12 +00:00
|
|
|
<el-menu-item index="/tools/time/">大屏时钟</el-menu-item>
|
2023-08-27 07:09:25 +00:00
|
|
|
</el-sub-menu>
|
2023-08-27 10:15:04 +00:00
|
|
|
</el-menu>
|
|
|
|
</client-only>
|
2023-08-27 07:09:25 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|