修复部分操作返回异常时无法查看异常消息
This commit is contained in:
parent
68016ab764
commit
fb474da49d
@ -620,11 +620,15 @@ export default {
|
||||
if (v) {
|
||||
const params = Object.assign({}, this.form, { resultRecordId: this.resultRecordId || '' }, obj)
|
||||
let res = await apiSaveapproval(params)
|
||||
console.log('res===', res)
|
||||
if (res.code !== 200) {
|
||||
this.$message.error(res.msg)
|
||||
// 为了看清错误原因特添加
|
||||
setTimeout(() => {
|
||||
history.go(0)
|
||||
resolve(1)
|
||||
}
|
||||
}, 1500)
|
||||
} else {
|
||||
this.form = {}
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
@ -645,6 +649,7 @@ export default {
|
||||
resolve(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@ -322,9 +322,9 @@ export default {
|
||||
this.isNoList = res.code !== 200
|
||||
if (res.code !== 200) {
|
||||
this.resultRecordId = ''
|
||||
if (!this.isNoRouter) {
|
||||
// if (!this.isNoRouter) {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
// }
|
||||
return
|
||||
}
|
||||
this.startIds = res.data.startId
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user