Browse Source

修复接口返回数据异常情况导致报错

master
邓平艺 4 years ago
parent
commit
ecb9b9be74
  1. 2
      pages/FQA/index.vue
  2. 2
      pages/login/index.vue

2
pages/FQA/index.vue

@ -20,7 +20,7 @@
methods: { methods: {
getData(){ getData(){
this.$http(this.API.API_ARTICLE_QA).then(res => { this.$http(this.API.API_ARTICLE_QA).then(res => {
this.content = res.data.content;
this.content = res.data?.content;
}) })
} }
} }

2
pages/login/index.vue

@ -60,7 +60,7 @@
// //
getAgree(){ getAgree(){
this.$http(this.API.API_WXLOGIN_VIEW).then(res => { this.$http(this.API.API_WXLOGIN_VIEW).then(res => {
this.agreement = res.data.agreement;
this.agreement = res.data?.agreement;
}) })
}, },
// //

Loading…
Cancel
Save