尝试捕获异常

This commit is contained in:
砂糖
2025-07-12 10:47:12 +08:00
parent 0062f70fff
commit 2ef29b2cdc

View File

@@ -482,10 +482,8 @@ export default {
})
}
})
})
})
}
} else if (state === 1) {
let material = this.processing
@@ -516,13 +514,20 @@ export default {
this.nextStepLoading = false
} else {
this.nextStepLoading = true
stepNextError(step).then(res => {
stepNextError(step)
.then(res => {
this.nextStepLoading = false
this.getDataList()
materialNextStepFlagError().then(res => {
this.submitButton = res.data === 0
})
})
.catch((error) => {
this.$message(error.message)
})
.finally(() => {
this.nextStepLoading = false
})
}
},