|
|
@@ -62,17 +62,15 @@ export default {
|
|
|
deep: true,
|
|
|
immediate: true,
|
|
|
handler (nextInitValue) {
|
|
|
- this.value.answer = nextInitValue.answer
|
|
|
+ this.value.answer = nextInitValue.answer ?? true
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
handleSubmit () {
|
|
|
- const { stem, answer, analysis } = this.value
|
|
|
+ const { stem, analysis } = this.value
|
|
|
if (!stem) {
|
|
|
this.$setErrorMessage('请输入题干')
|
|
|
- } else if (!answer) {
|
|
|
- this.$setErrorMessage('请选择答案')
|
|
|
} else if (!analysis) {
|
|
|
this.$setErrorMessage('请输入解析')
|
|
|
} else {
|