+1
-1
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user