推荐能力 如果返回>9 截取数组
This commit is contained in:
parent
cb60a8736d
commit
1c64743bd1
|
@ -53,6 +53,9 @@
|
||||||
let dataList = ref([])
|
let dataList = ref([])
|
||||||
const getList = () => {
|
const getList = () => {
|
||||||
selectRecommend().then((res) => {
|
selectRecommend().then((res) => {
|
||||||
|
if (res.data.data.records.length > 9) {
|
||||||
|
res.data.data.records.length = 9
|
||||||
|
}
|
||||||
dataList.value = res.data.data.records
|
dataList.value = res.data.data.records
|
||||||
dataList.value.map((item, index) => {
|
dataList.value.map((item, index) => {
|
||||||
// debugger
|
// debugger
|
||||||
|
@ -95,7 +98,7 @@
|
||||||
router.push({
|
router.push({
|
||||||
path: '/DetailsPageconetent',
|
path: '/DetailsPageconetent',
|
||||||
query: {
|
query: {
|
||||||
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB
|
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue