Pārlūkot izejas kodu

Data为null 兼容

hbchen 1 gadu atpakaļ
vecāks
revīzija
dcd72977e5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 || []