[update 解读流程] 接口报错增加提示

This commit is contained in:
danshihao
2024-08-29 18:05:55 +08:00
parent 91ce8a9d7d
commit 233e802d03
3 changed files with 9 additions and 0 deletions
@@ -384,6 +384,8 @@ export default {
})
}
}
} else {
this.$message.warn(res.message)
}
}).finally(() => {
this.loading = false
@@ -642,6 +644,7 @@ export default {
}
}).catch((err) => {
console.log(err)
this.$message.warn(this.$t('pageDataException'))
this.loading = false
}).finally(() => {
setTimeout(() => {
@@ -680,6 +683,8 @@ export default {
}).catch((err) => {
if (err && err.message && tabList.includes(err.message)) {
this.switchChange(err.message)
} else {
this.$message.warn(this.$t('pageDataException'))
}
this.loading = false
}).finally(() => {
@@ -711,6 +716,8 @@ export default {
console.log(err)
if (err && err.message && tabList.includes(err.message)) {
this.switchChange(err.message)
} else {
this.$message.warn(this.$t('pageDataException'))
}
this.loading = false
}).finally(() => {