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() {
|
async handleSave() {
|
||||||
let loading = null
|
let loading = null
|
||||||
try {
|
try {
|
||||||
let valid = await this.$refs.tableQsForm.validate()
|
let valid = await this.$refs.tableQsForm.validate().catch(() => false)
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
// 判断是否有标记未保存
|
// 判断是否有标记未保存
|
||||||
let isExistUnSaved = false
|
let isExistUnSaved = false
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async validateBeforeSave() {
|
async validateBeforeSave() {
|
||||||
const valid = await this.$refs['questions'].validate()
|
const valid = await this.$refs['questions'].validate().catch(() => false)
|
||||||
if (!valid) return false
|
if (!valid) return false
|
||||||
const hasUnsavedAnnotation = this.verifyAnnotationIsSave()
|
const hasUnsavedAnnotation = this.verifyAnnotationIsSave()
|
||||||
if (!hasUnsavedAnnotation) return true
|
if (!hasUnsavedAnnotation) return true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue