GST002_old
喻忠伟 3 months ago
parent e9c9f7aa1d
commit e27f11436a
  1. 6
      src/views/home/index.vue

@ -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

Loading…
Cancel
Save