Browse Source

如果没有作者不显示关注按钮

chenlei 3 months ago
parent
commit
828e025484
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/report/Detail.vue

+ 1 - 1
src/views/report/Detail.vue

@@ -307,7 +307,7 @@ function goDetails(item){
           <div
             @click="changeFollowState"
             :class="['opt-btn', isFollowed ? 'followed' : '']"
-            v-if="isLogin"
+            v-if="isLogin && authorInfoList?.[0].name"
           >
             {{ isFollowed ? "取消关注" : "关注" }}
           </div>