|
@@ -37,7 +37,6 @@
|
|
|
@setUp="setUp"
|
|
|
@setPreview="setPreview"
|
|
|
@deleteQuestion="deleteQuestion"
|
|
|
- @createNewQuestion="createNewQuestion"
|
|
|
/>
|
|
|
|
|
|
<div class="preview" :style="{ minHeight: preview ? '300px' : 'auto' }">
|
|
@@ -154,16 +153,6 @@ export default {
|
|
|
createDefaultQuestion() {
|
|
|
this.addQuestionToExercise('select', 'single', questionDataList['select']);
|
|
|
},
|
|
|
- // 创建新题
|
|
|
- async createNewQuestion() {
|
|
|
- if (this.index_list.length === 0) {
|
|
|
- this.createDefaultQuestion();
|
|
|
- return;
|
|
|
- }
|
|
|
- await this.$refs.createMain.saveQuestion();
|
|
|
- let { type, additional_type } = this.index_list[this.curIndex];
|
|
|
- this.addQuestionToExercise(type, additional_type, questionDataList[type]);
|
|
|
- },
|
|
|
/**
|
|
|
* 获取练习题目索引列表
|
|
|
*/
|