推荐能力 如果返回>9 截取数组

This commit is contained in:
a0049873 2022-11-14 09:54:02 +08:00
parent cb60a8736d
commit 1c64743bd1
1 changed files with 4 additions and 1 deletions

View File

@ -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,
},
})
}