From 44ca30cbf356cf69d12bb971485eaa547a4b34df Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 26 Aug 2022 14:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/xiushan/apps/AppConsole/AppConsole.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/xiushan/apps/AppConsole/AppConsole.vue b/project/xiushan/apps/AppConsole/AppConsole.vue index 1daa4fcf..51869a0c 100644 --- a/project/xiushan/apps/AppConsole/AppConsole.vue +++ b/project/xiushan/apps/AppConsole/AppConsole.vue @@ -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 } })