Przeglądaj źródła

Merge branch 'test'

DESKTOP-SVI9JE1\muzen 1 rok temu
rodzic
commit
bc06e6648d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/my-list/my-list.vue

+ 1 - 1
src/components/my-list/my-list.vue

@@ -6,7 +6,7 @@
     </view>
     <view class="list">
       <ol v-if="data.childList.length > 0">
-        <li v-for="(item, index) in data.childList" :key="item.id">{{ index + 1 }}、{{ item.audioName }}</li>
+        <li v-for="(item, index) in data.childList.slice(0, 4)" :key="item.id">{{ index + 1 }}、{{ item.audioName }}</li>
       </ol>
       <view v-else>{{ audioOption[type] }}暂无内容</view>
     </view>