1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bb00ac10f8
commit
cdcc98efeb
|
|
@ -797,7 +797,7 @@ export default {
|
|||
async handleSave() {
|
||||
let loading = null
|
||||
try {
|
||||
let valid = await this.$refs.tableQsForm.validate()
|
||||
let valid = await this.$refs.tableQsForm.validate().catch(() => false)
|
||||
if (!valid) return
|
||||
// 判断是否有标记未保存
|
||||
let isExistUnSaved = false
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ export default {
|
|||
}
|
||||
},
|
||||
async validateBeforeSave() {
|
||||
const valid = await this.$refs['questions'].validate()
|
||||
const valid = await this.$refs['questions'].validate().catch(() => false)
|
||||
if (!valid) return false
|
||||
const hasUnsavedAnnotation = this.verifyAnnotationIsSave()
|
||||
if (!hasUnsavedAnnotation) return true
|
||||
|
|
|
|||
Loading…
Reference in New Issue