修正接口请求
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user