fix: 推送合规失败不再重复弹出提示

This commit is contained in:
刘泉佳
2026-10-20 22:08:57 +08:00
parent 603038d5ff
commit 447b2d9d76
2 changed files with 16 additions and 4 deletions
+8 -2
View File
@@ -1758,7 +1758,10 @@ export default {
this.onLoad(this.page, this.query);
})
.catch(error => {
this.$message.error(error?.response?.data?.msg || '推送合规失败');
// 拦截器已弹出后端 msg(如特批审核中禁止重推),此处不再重复提示
if (!error?._notified) {
this.$message.error(error?.response?.data?.msg || '推送合规失败');
}
})
.finally(() => {
this.hcsRepushingId = null;
@@ -1792,7 +1795,10 @@ export default {
this.onLoad(this.page, this.query);
})
.catch(error => {
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
// 拦截器已弹出后端 msg,此处不再重复提示
if (!error?._notified) {
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
}
})
.finally(() => {
this.hcsRepushingId = null;
+8 -2
View File
@@ -1681,7 +1681,10 @@ export default {
this.onLoad(this.page, this.query);
})
.catch(error => {
this.$message.error(error?.response?.data?.msg || '推送合规失败');
// 拦截器已弹出后端 msg,此处不再重复提示
if (!error?._notified) {
this.$message.error(error?.response?.data?.msg || '推送合规失败');
}
})
.finally(() => {
this.hcsRepushingId = null;
@@ -1715,7 +1718,10 @@ export default {
this.onLoad(this.page, this.query);
})
.catch(error => {
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
// 拦截器已弹出后端 msg,此处不再重复提示
if (!error?._notified) {
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
}
})
.finally(() => {
this.hcsRepushingId = null;