试卷编制实训题数量增加校验

This commit is contained in:
fan 2023-01-04 10:57:02 +08:00
parent 5449bd0e29
commit 720bce52a3

View File

@ -82,7 +82,7 @@ export default {
message(new Error(this.$t('publish.inputQuestionNumberError'))); message(new Error(this.$t('publish.inputQuestionNumberError')));
} else if (!Number(value)) { } else if (!Number(value)) {
message(new Error(this.$t('publish.inputValidNumber'))); message(new Error(this.$t('publish.inputValidNumber')));
} else if (Number(value) > this.topicNum && this.form.type === 1) { } else if (Number(value) > this.topicNum) {
message(new Error(this.$t('publish.inputNumberError'))); message(new Error(this.$t('publish.inputNumberError')));
} else { } else {
message(); message();