Explorar o código

Data为null 兼容

hbchen hai 1 ano
pai
achega
dcd72977e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/Home.vue

+ 1 - 1
src/views/Home.vue

@@ -679,7 +679,7 @@ export default {
       }
       homeInterface.getQuestionnaireDetail().then(res=>{
         // console.log(res);
-        if(res.Ret == 200){
+        if(res.Ret == 200 && res.Data){
           this.showQuestionDia=!!res.Data.IsPopup && (!!res.Data.IsShow)
           this.isQuestionShow = !!res.Data.IsShow
           this.questionList = res.Data.Question.List || []