taiji_caozhaorui 2 weeks ago
parent
commit
54951764ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/study/home/top.vue

+ 1 - 1
src/views/study/home/top.vue

@@ -98,7 +98,7 @@ const dataCpt = computed(() => {
     const arr: any = props.data?.slice(0, props.top - 2)
     return arr
   } else {
-    return props.data
+    return props.data.slice(0, props.top)
   }
 })
 </script>