更改获取热搜个数

This commit is contained in:
ZtRXR 2023-09-02 23:15:31 +08:00
parent e10d79a5e4
commit d59b289e96
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ const gotoWeb = (row, column, cell, event)=>{
<template>
<client-only>
<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="times" label="上榜次数" />
</el-table>

View File

@ -7,7 +7,7 @@ const getWebArr:string[] = await $fetch("https://data.zziyu.cn/hot/webs")
<template>
<Title>数据收集</Title>
<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="10" :hours="1" :key="index"></DataTimesTop>
</div>
</template>