This commit is contained in:
2026-05-29 16:18:11 +08:00
parent e2bcdc31bd
commit a12ef31f26
3 changed files with 167 additions and 86 deletions
@@ -86,7 +86,7 @@ layout("/layouts/v4/baseLayout.html"){
</div>
<jcdt :list="websiteNews.grassroots"></jcdt>
<jcdt :grassroots="websiteNews.grassroots" :notices="websiteNews.notices"></jcdt>
</div>
</div>
@@ -105,6 +105,7 @@ layout("/layouts/v4/baseLayout.html"){
return{
websiteNews:{
grassroots:[],
notices:[],
}
}
},
@@ -122,7 +123,11 @@ layout("/layouts/v4/baseLayout.html"){
getWebSiteNews(){
this.$axios.post('/platform/home/getNews').then(res => {
if (res.code === 0) {
this.websiteNews = res.data
const data = res.data || {}
this.websiteNews = {
grassroots: data.grassroots || [],
notices: data.notices || [],
}
}
})
}