|
@@ -62,15 +62,22 @@ export default {
|
|
|
deep: true,
|
|
|
immediate: true,
|
|
|
},
|
|
|
+ 'answer.answer_list': {
|
|
|
+ handler(val) {
|
|
|
+ if (val.length === 0) {
|
|
|
+ this.handleData();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
// 初始化数据
|
|
|
handleData() {
|
|
|
if (!this.isJudgingRightWrong) {
|
|
|
- let obj = {
|
|
|
+ this.answer.answer_list.push({
|
|
|
text: '',
|
|
|
- };
|
|
|
- this.answer.answer_list.push(obj);
|
|
|
+ });
|
|
|
}
|
|
|
this.show_preview = true;
|
|
|
},
|