保存验证更改

uat_us
caiyiling 2025-01-10 14:24:39 +08:00
parent 0a473dcae3
commit e672e6bd18
1 changed files with 5 additions and 1 deletions

View File

@ -733,7 +733,8 @@ export default {
return new Blob([bytesCode], { type: imgtype })
},
async handleSave() {
const valid = await this.$refs.measurementForm.validate()
try {
const valid = await this.$refs.measurementForm.validate()
if (!valid) return
if (parseInt(this.questionForm[this.isMeasurableId]) === 1) {
//
@ -817,6 +818,9 @@ export default {
console.log(e)
loading.close()
}
} catch (e) {
console.log(e)
}
},
async handleClose() {
this.$emit('close')