Browse Source

fix: 极端情况下不显示更多按钮

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 year ago
parent
commit
0a7c499ea0

+ 1 - 0
apps/bigmember_pc/src/views/workspace/components/SubscribeList.vue

@@ -5,6 +5,7 @@
     title="我的订阅信息"
     @clickListItem="clickListItem"
     @linkMore="linkMore"
+    :is-recommend="isRecommend"
     :loading="loading"
     :loaded="loaded"
   >

+ 5 - 1
apps/bigmember_pc/src/views/workspace/ui/ListCard.vue

@@ -4,7 +4,7 @@
       <div
         slot="header-right"
         class="h-header-more"
-        v-show="list.length !== 0"
+        v-show="list.length !== 0 && isRecommend !== '3'"
         @click="linkMore"
       >
         <span class="more-text">更多</span>
@@ -54,6 +54,10 @@ export default {
       type: String,
       default: ''
     },
+    isRecommend: {
+      type: String,
+      default: ''
+    },
     loading: {
       type: Boolean,
       default: false