diff --git a/source/vue/xzs-admin/src/views/exam/question/edit/single-choice.vue b/source/vue/xzs-admin/src/views/exam/question/edit/single-choice.vue index bc668e8..6664fd3 100644 --- a/source/vue/xzs-admin/src/views/exam/question/edit/single-choice.vue +++ b/source/vue/xzs-admin/src/views/exam/question/edit/single-choice.vue @@ -186,6 +186,23 @@ export default { }, resetForm () { this.$refs['form'].resetFields() + this.form = { + id: null, + questionType: 1, + gradeLevel: null, + subjectId: null, + title: '', + items: [ + { prefix: 'A', content: '' }, + { prefix: 'B', content: '' }, + { prefix: 'C', content: '' }, + { prefix: 'D', content: '' } + ], + analyze: '', + correct: '', + score: '', + difficult: 0 + } }, levelChange () { this.form.subjectId = null diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index e828409..0754213 100644 --- a/source/xzs/src/main/resources/static/admin/index.html +++ b/source/xzs/src/main/resources/static/admin/index.html @@ -13,4 +13,4 @@ hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9' var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(hm, s) - })()