添加all hot标题

This commit is contained in:
ZtRXR 2023-09-02 22:40:18 +08:00
parent b05743902e
commit e10d79a5e4
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const gotoWeb = (row, column, cell, event)=>{
<template> <template>
<client-only> <client-only>
<el-table :data="data" style="width: 90%;max-width: 600px;margin: 10px;margin-bottom: 15px" :table-layout="'fixed'" @cell-click="gotoWeb"> <el-table :data="data" style="width: 90%;max-width: 600px;margin: 10px;margin-bottom: 15px" :table-layout="'fixed'" @cell-click="" @cell-dblclick="gotoWeb">
<el-table-column prop="word" :label="props.fromWeb+'热搜'" width="180" /> <el-table-column prop="word" :label="props.fromWeb+'热搜'" width="180" />
<el-table-column prop="lastTime" label="最后上榜" width="180" /> <el-table-column prop="lastTime" label="最后上榜" width="180" />
<el-table-column prop="times" label="上榜次数" /> <el-table-column prop="times" label="上榜次数" />

View File

@ -5,6 +5,7 @@ const getWebArr:string[] = await $fetch("https://data.zziyu.cn/hot/webs")
</script> </script>
<template> <template>
<Title>数据收集</Title>
<div style="display: flex;align-items: center;justify-content: center;flex-direction: column"> <div style="display: flex;align-items: center;justify-content: center;flex-direction: column">
<DataTimesTop v-for="(item,index) in getWebArr" :fromWeb="item" :limit="5" :hours="1" :key="index"></DataTimesTop> <DataTimesTop v-for="(item,index) in getWebArr" :fromWeb="item" :limit="5" :hours="1" :key="index"></DataTimesTop>
</div> </div>