This commit is contained in:
2023-12-29 10:09:35 +08:00
parent 4fc4858efc
commit a2648c6c16
8 changed files with 112 additions and 47 deletions

View File

@@ -15,11 +15,10 @@
<span class="title">热搜榜</span>
<!-- <span class="clear" @click="clearHistory" v-show="isShowClearHistory"><i class="el-icon-circle-close"></i>清空</span>-->
</div>
<div v-if="hotSearchKeyWords" v-show="isShowClearHistory">
<div v-if="hotSearchKeyWords" v-for="(tag,index) in hotSearchKeyWords"
:key="index" v-show="isShowClearHistory">
<el-tag
:v-if="hotSearchKeyWords"
v-for="(tag,index) in hotSearchKeyWords"
:key="index"
size="small"
style="margin-right: 10px; margin-top: 10px; cursor: pointer"
@click="handleSearch(tag)"
@@ -148,7 +147,6 @@ export default {
}
}).then((res)=>{
if (res.data.code === 200) {
that.hotSearchKeyWords=res.data.data;
} else {