推荐能力 如果返回>9 截取数组
This commit is contained in:
parent
cb60a8736d
commit
1c64743bd1
|
@ -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,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue