diff --git a/source/vue/xzs-admin/src/views/exam/question/edit/gap-filling.vue b/source/vue/xzs-admin/src/views/exam/question/edit/gap-filling.vue index a599623..2c170f7 100644 --- a/source/vue/xzs-admin/src/views/exam/question/edit/gap-filling.vue +++ b/source/vue/xzs-admin/src/views/exam/question/edit/gap-filling.vue @@ -208,6 +208,7 @@ export default { this.questionShow.question = this.form }, resetForm () { + let lastId = this.form.id this.$refs['form'].resetFields() this.form = { id: null, @@ -222,6 +223,7 @@ export default { score: '', difficult: 0 } + this.form.id = lastId }, ...mapActions('exam', { initSubject: 'initSubject' }), ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index 565248d..e3d0d5a 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) - })()