commit
This commit is contained in:
@@ -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 || [],
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user