尝试捕获异常
This commit is contained in:
@@ -482,10 +482,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
} else if (state === 1) {
|
} else if (state === 1) {
|
||||||
let material = this.processing
|
let material = this.processing
|
||||||
@@ -516,13 +514,20 @@ export default {
|
|||||||
this.nextStepLoading = false
|
this.nextStepLoading = false
|
||||||
} else {
|
} else {
|
||||||
this.nextStepLoading = true
|
this.nextStepLoading = true
|
||||||
stepNextError(step).then(res => {
|
stepNextError(step)
|
||||||
|
.then(res => {
|
||||||
this.nextStepLoading = false
|
this.nextStepLoading = false
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
materialNextStepFlagError().then(res => {
|
materialNextStepFlagError().then(res => {
|
||||||
this.submitButton = res.data === 0
|
this.submitButton = res.data === 0
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$message(error.message)
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.nextStepLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user