修改新闻布局

GST002_old
JayChou 4 months ago
parent 30b57c5569
commit 719a91d898
  1. 9
      src/views/home/index.vue

@ -35,6 +35,13 @@
>
{{ item.name }}
</div>
<div
class="item"
@click="router.push('/news')"
>
更多
</div>
</div>
<div class="newa-main">
<div class="left">
@ -124,7 +131,7 @@ const newList = ref<any>([])
const getNewsList = async () => {
const res: any = await getColumnListApi()
console.log(res)
newList.value = res.result
newList.value = res.result.slice(0, 4)
console.log(newList.value, 'newList.value')
newInfo.value = newList.value[0]
getNewInfo(newList.value[0].id)

Loading…
Cancel
Save