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

Loading…
Cancel
Save