|
@@ -96,7 +96,14 @@ service.interceptors.response.use(
|
|
|
approvePageRoute: obj[1] ?? '/work-order/approval'
|
|
|
})
|
|
|
const str = '已发起工作流,请等待审核'
|
|
|
- return Promise.reject(str)
|
|
|
+ const fn = Vue.prototype.$message.success
|
|
|
+ Vue.prototype.$message.success = () => {
|
|
|
+ fn(str)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ Vue.prototype.$message.success = fn
|
|
|
+ })
|
|
|
+ return Promise.resolve(str)
|
|
|
} catch (error) {
|
|
|
const str = '取消操作'
|
|
|
return Promise.reject(str)
|