diff --git a/src/views/xgf/flow/components/sendUtil.vue b/src/views/xgf/flow/components/sendUtil.vue index 01ec759..46a6117 100644 --- a/src/views/xgf/flow/components/sendUtil.vue +++ b/src/views/xgf/flow/components/sendUtil.vue @@ -292,10 +292,15 @@ export default { } upload('/xgf/user/approveMax', formData) .then((data) => { - this.$message.success('推送成功') - this.visible = false - this.$emit('refresh', '') - this.handleClose() + if (data.code !== '0') { + this.$message.error(data.errorMessage) + } else { + this.$message.success('推送成功') + this.visible = false + this.handleClose() + this.$emit('refresh', '') + } + this.loading = false }) .catch((e) => {