🐛 未登录关注、粉丝数据展示问题修复

This commit is contained in:
ronger 2021-09-07 19:34:57 +08:00
parent 8d0331dd34
commit 6e4c75b9cf

View File

@ -18,7 +18,7 @@
<small class="d-block text-muted" v-else>还没有介绍自己</small> <small class="d-block text-muted" v-else>还没有介绍自己</small>
</el-col> </el-col>
<el-col :span="24" style="padding: 2rem 0;"> <el-col :span="24" style="padding: 2rem 0;">
<template v-if="userInfo.idUser !== user.idUser"> <template v-if="!(userInfo && userInfo.idUser === user.idUser)">
<el-button v-if="isFollower(user.idUser)" size="medium" round @click="cancelFollowUser2(user.idUser)">取消关注</el-button> <el-button v-if="isFollower(user.idUser)" size="medium" round @click="cancelFollowUser2(user.idUser)">取消关注</el-button>
<el-button v-else size="medium" round @click="followUser2(user.idUser)">关注</el-button> <el-button v-else size="medium" round @click="followUser2(user.idUser)">关注</el-button>
</template> </template>