CN-749 fix: 统一error交互

This commit is contained in:
chenjinsong
2023-03-16 19:07:37 +08:00
parent 831b00fc78
commit 3aa2c19dbd
22 changed files with 420 additions and 382 deletions

View File

@@ -130,10 +130,10 @@ export default {
this.showError = true
this.errorMsg = res.message
}
}).catch(error => {
}).catch(e => {
this.isNoData = false
this.showError = true
this.errorMsg = error.message
this.errorMsg = this.errorMsgHandler(e)
}).finally(() => {
this.toggleLoading(false)
})