修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:17:03 +08:00
parent 3e69a37fa6
commit 44ca30cbf3

View File

@@ -148,7 +148,7 @@ export default {
methods: {
getComments() {
this.instance.post('/app/appleavemessage/list?current=1&size=10').then(res => {
if (res.code === 0) {
if (res?.data) {
this.comments = res.data.records
}
})
@@ -164,7 +164,7 @@ export default {
getNewsList() {
this.instance.post('/app/appnews/list?current=1&size=10').then(res => {
if (res.code === 0) {
if (res?.data) {
this.news = res.data.records
}
})