|
|
|
@ -130,9 +130,9 @@ const toNewsDetail = (id: number) => { |
|
|
|
|
const newList = ref<any>([]) |
|
|
|
|
const getNewsList = async () => { |
|
|
|
|
const res: any = await getColumnListApi() |
|
|
|
|
console.log(res) |
|
|
|
|
// console.log(res) |
|
|
|
|
newList.value = res.result.slice(0, 4) |
|
|
|
|
console.log(newList.value, 'newList.value') |
|
|
|
|
// console.log(newList.value, 'newList.value') |
|
|
|
|
newInfo.value = newList.value[0] |
|
|
|
|
getNewInfo(newList.value[0].id) |
|
|
|
|
} |
|
|
|
@ -145,7 +145,7 @@ const childrenNewList = ref<any>([]) |
|
|
|
|
const getNewInfo = async (id: any) => { |
|
|
|
|
const res: any = await queryEssayListApi(id) |
|
|
|
|
childrenNewList.value = res.result.records |
|
|
|
|
console.log(childrenNewList, 'childrenNewList') |
|
|
|
|
// console.log(childrenNewList, 'childrenNewList') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 切换tab |
|
|
|
|