保存验证更改

This commit is contained in:
2025-01-10 14:24:39 +08:00
parent 0a473dcae3
commit e672e6bd18
@@ -733,7 +733,8 @@ export default {
return new Blob([bytesCode], { type: imgtype }) return new Blob([bytesCode], { type: imgtype })
}, },
async handleSave() { async handleSave() {
const valid = await this.$refs.measurementForm.validate() try {
const valid = await this.$refs.measurementForm.validate()
if (!valid) return if (!valid) return
if (parseInt(this.questionForm[this.isMeasurableId]) === 1) { if (parseInt(this.questionForm[this.isMeasurableId]) === 1) {
// 检验是否有标记为保存 // 检验是否有标记为保存
@@ -817,6 +818,9 @@ export default {
console.log(e) console.log(e)
loading.close() loading.close()
} }
} catch (e) {
console.log(e)
}
}, },
async handleClose() { async handleClose() {
this.$emit('close') this.$emit('close')