fix: 推送合规失败提示与拦截器重复弹出,合并为单条
This commit is contained in:
@@ -1787,11 +1787,8 @@ export default {
|
||||
this.$message.success(res.data?.data || '推送合规成功');
|
||||
this.onLoad(this.page, this.query);
|
||||
})
|
||||
.catch(error => {
|
||||
// 拦截器已弹出后端 msg(如特批审核中禁止重推),此处不再重复提示
|
||||
if (!error?._notified) {
|
||||
this.$message.error(error?.response?.data?.msg || '推送合规失败');
|
||||
}
|
||||
.catch(() => {
|
||||
// 失败原因由 axios 拦截器统一弹出后端 msg,此处不再重复提示
|
||||
})
|
||||
.finally(() => {
|
||||
this.hcsRepushingId = null;
|
||||
@@ -1831,11 +1828,8 @@ export default {
|
||||
this.$message.success(res.data?.data || '批量推送合规完成');
|
||||
this.onLoad(this.page, this.query);
|
||||
})
|
||||
.catch(error => {
|
||||
// 拦截器已弹出后端 msg,此处不再重复提示
|
||||
if (!error?._notified) {
|
||||
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
|
||||
}
|
||||
.catch(() => {
|
||||
// 失败原因由 axios 拦截器统一弹出后端 msg,此处不再重复提示
|
||||
})
|
||||
.finally(() => {
|
||||
this.hcsRepushingId = null;
|
||||
|
||||
@@ -1686,11 +1686,8 @@ export default {
|
||||
this.$message.success(res.data?.data || '推送合规成功');
|
||||
this.onLoad(this.page, this.query);
|
||||
})
|
||||
.catch(error => {
|
||||
// 拦截器已弹出后端 msg,此处不再重复提示
|
||||
if (!error?._notified) {
|
||||
this.$message.error(error?.response?.data?.msg || '推送合规失败');
|
||||
}
|
||||
.catch(() => {
|
||||
// 失败原因由 axios 拦截器统一弹出后端 msg,此处不再重复提示
|
||||
})
|
||||
.finally(() => {
|
||||
this.hcsRepushingId = null;
|
||||
@@ -1730,11 +1727,8 @@ export default {
|
||||
this.$message.success(res.data?.data || '批量推送合规完成');
|
||||
this.onLoad(this.page, this.query);
|
||||
})
|
||||
.catch(error => {
|
||||
// 拦截器已弹出后端 msg,此处不再重复提示
|
||||
if (!error?._notified) {
|
||||
this.$message.error(error?.response?.data?.msg || '批量推送合规失败');
|
||||
}
|
||||
.catch(() => {
|
||||
// 失败原因由 axios 拦截器统一弹出后端 msg,此处不再重复提示
|
||||
})
|
||||
.finally(() => {
|
||||
this.hcsRepushingId = null;
|
||||
|
||||
Reference in New Issue
Block a user