[update] 处理流程请求异常页面消失

This commit is contained in:
danshihao
2024-04-19 13:58:29 +08:00
parent 53061c92c8
commit 552bc8397d
6 changed files with 60 additions and 18 deletions
@@ -160,6 +160,7 @@ import {
} from '@api/workCenter'
import { cloneDeep } from 'lodash'
const tabList = ['base', 'user']
export default {
name: 'PermissionApplicationProcess',
components: { UserSelectModal, BaseInfoTable, PersonnelInfo, ProcessDetailList, InternalDetailPage },
@@ -600,7 +601,9 @@ export default {
}
}).catch((err) => {
console.log(err)
this.switchChange(err.message)
if (err && err.message && tabList.includes(err.message)) {
this.switchChange(err.message)
}
this.loading = false
}).finally(() => {
setTimeout(() => {
@@ -636,7 +639,9 @@ export default {
this.$message.warn(res.message)
}
}).catch((err) => {
this.switchChange(err.message)
if (err && err.message && tabList.includes(err.message)) {
this.switchChange(err.message)
}
this.loading = false
}).finally(() => {
setTimeout(() => {
@@ -677,7 +682,9 @@ export default {
this.$message.warn(res.message)
}
}).catch((err) => {
this.switchChange(err.message)
if (err && err.message && tabList.includes(err.message)) {
this.switchChange(err.message)
}
this.loading = false
}).finally(() => {
setTimeout(() => {