|
@@ -150,7 +150,7 @@ export default {
|
|
|
eight: 8
|
|
|
};
|
|
|
this.item = JSON.parse(res.data.item);
|
|
|
- console.log(this.item);
|
|
|
+ // console.log(this.item);
|
|
|
this.askList = []
|
|
|
for (let key in this.item) {
|
|
|
switch (key) {
|
|
@@ -175,17 +175,25 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
case "six": {
|
|
|
+ if(this.item['six']){
|
|
|
this.askList.push(this.subjectJson[6].title+' : '+this.subjectJson[6][this.item[key]])
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
case "seven":
|
|
|
- {
|
|
|
- this.askList.push(this.subjectJson[7].title+' : '+this.subjectJson[7][this.item[key]])
|
|
|
+ { if(this.item['seven']){
|
|
|
+ this.askList.push(this.subjectJson[7].title+' : '+this.subjectJson[7][this.item[key]])
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case "eight": {
|
|
|
- this.askList.push(this.subjectJson[8].title+' : '+this.subjectJson[8][this.item[key]])
|
|
|
+ if(this.item['eight']){
|
|
|
+ this.askList.push(this.subjectJson[8].title+' : '+this.subjectJson[8][this.item[key]])
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
}
|