[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
+1
View File
@@ -249,6 +249,7 @@ module.exports = {
disableInput: 'Inhibit Input',
fileUploadError: 'File Upload Error',
importMaxMsg: 'The maximum size for importing files is {size}MB',
pageDataException: 'Page Data Exception',
// 标准字段
standardField: {
standardEnglishName: 'Regulation English Name',
+1
View File
@@ -249,6 +249,7 @@ module.exports = {
disableInput: '禁止输入',
fileUploadError: '文件上传错误',
importMaxMsg: '导入文件最大{size}MB',
pageDataException: '页面数据异常',
// 标准字段
standardField: {
standardEnglishName: '标准英文名称',
@@ -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(() => {