Commit bc29fe04 authored by zhangyanni's avatar zhangyanni

话题

parent 843b83d6
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
<!--置顶&&热门--> <!--置顶&&热门-->
<!--相关话题--> <!--相关话题-->
<div class="topicListWrap" v-if="topCommentData.length>0||hotCommentData.length>0" <div class="topicListWrap" v-if="(topCommentData.length>0||hotCommentData.length>0)&&sameTopicList.length>0"
:style="{paddingBottom:tableData.length==0?'1rem':''}"> :style="{paddingBottom:tableData.length==0?'1rem':''}">
<div class="topicItem"> <div class="topicItem">
<div class="isSameTopic" @click="$router.push('/topicList')"> <div class="isSameTopic" @click="$router.push('/topicList')">
...@@ -797,7 +797,7 @@ ...@@ -797,7 +797,7 @@
var arr = res.result.records; var arr = res.result.records;
arr.forEach((item,index)=>{ arr.forEach((item,index)=>{
if (this.hotCommentData.length == 0 && this.topCommentData.length == 0) { if (this.hotCommentData.length == 0 && this.topCommentData.length == 0) {
if ((this.page == 1 && index == 2) || this.page == 1 && res.result.records.length <= 2) { if (((this.page == 1 && index == 2) || this.page == 1 && res.result.records.length <= 2)&&this.sameTopicList.length>0) {
let objVal = { let objVal = {
id: 0, id: 0,
isShowAll: false, isShowAll: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment