个人主页 ---点击右侧 关注我的人 我关注的人 跳转到“关注”后不显示内容 实际上是有内容的

This commit is contained in:
zhaofang
2022-10-24 17:44:07 +08:00
parent 0f8bf9432e
commit bd204b1203
3 changed files with 9 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
<li class="follow-home-title tabs-index" @click="tagTab(2)">{{userInfo.aid == pageId ?'关注我的人':'关注他的人'}}<span v-if="active == 2" class="line"></span></li>
</ul>
<div v-show="active ==1">
<div class="follow-list" v-for="item in follow.list" :key="item.id">
<div class="follow-list" v-for="(item,index) in follow.list" :key="index">
<div style="width:60px;height:60">
<el-avatar shape="circle" style="width:60px;height:60px" size="small" :src="baseUrl+item.authorInfo.avatar" v-if="item.authorInfo.avatar"></el-avatar>
<div v-else class="uavatar">
@@ -66,7 +66,7 @@
</p>
<p class="portal-summary-text">{{maPage.userFollow.authorInfo.sign}}</p>
</div>
<div v-if="Id == userInfo.aid">
<div v-if="pageId == userInfo.aid">
<el-button class="btn" icon="el-icon-plus" v-if="maPage.has">已关注</el-button>
<el-button type="primary" class="btn" v-else icon="el-icon-plus" @click="toFollow(maPage)">关注他</el-button>
</div>