diff --git a/front/src/views/newHome/components/RecommendationAbility.vue b/front/src/views/newHome/components/RecommendationAbility.vue index 3b87a72d..1f5dc17d 100644 --- a/front/src/views/newHome/components/RecommendationAbility.vue +++ b/front/src/views/newHome/components/RecommendationAbility.vue @@ -53,6 +53,9 @@ let dataList = ref([]) const getList = () => { selectRecommend().then((res) => { + if (res.data.data.records.length > 9) { + res.data.data.records.length = 9 + } dataList.value = res.data.data.records dataList.value.map((item, index) => { // debugger @@ -95,7 +98,7 @@ router.push({ path: '/DetailsPageconetent', query: { - select: DETAIL_PAGE_CONTENT_DEFAULT_TAB + select: DETAIL_PAGE_CONTENT_DEFAULT_TAB, }, }) }