Skip to content

Commit 04c6a30

Browse files
committed
修复用户卡片中关注状态错误
1 parent 1f6e0d8 commit 04c6a30

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/followCard.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
<div class="d-flex flex-ai">
99
<span class="text-bold text-md">{{userInfo.name}}</span>
1010
<v-spacer></v-spacer>
11-
<v-btn width="80" small color="#3C3C3C" depressed v-if="userInfo.myFollow" :loading="unFollowLoading"
12-
@click="unFollow">取消关注</v-btn>
13-
<v-btn small color="primary" depressed width="80" v-else :loading="followLoading" @click="follow">关注</v-btn>
11+
<div v-if="userInfo.myFollow!==null">
12+
<v-btn width="80" small color="#3C3C3C" depressed v-if="userInfo.myFollow" :loading="unFollowLoading"
13+
@click="unFollow">取消关注</v-btn>
14+
<v-btn small color="primary" depressed width="80" v-else :loading="followLoading" @click="follow">关注</v-btn>
15+
</div>
1416
</div>
1517
<span class="about text-describe text-sm">{{userInfo.description||'ta还没想好怎么描述自己...'}}</span>
1618
<div class="text-sm num">

0 commit comments

Comments
 (0)