Commit d1e4efb2 by 黑潮

update: 刷新福利组件

parent f6e08981
......@@ -277,6 +277,12 @@ export default {
this.$tips({ message: `${ this.isAdd ? '新建' : '编辑' }成功`, type: 'success' });
if(this.isAdd) {
this.$store.commit('updateShowCornerCanUseApp', true);
let callbackId = this.$route.query.callbackId;
if(callbackId) {
let obj = JSON.parse(localStorage.getItem('welfareCreateCallback') || '{}');
obj[callbackId] = true;
localStorage.setItem('welfareCreateCallback', obj);
}
}
if(!this.isAdd) {
this.$router.push('/card-package/list');
......@@ -391,4 +397,4 @@ export default {
color: #F5222D;
}
}
</style>
\ No newline at end of file
</style>
......@@ -842,6 +842,12 @@ export default {
this.submitType = 1;
this.loading = false;
this.$store.commit('updateShowCornerCanUseApp', true);
let callbackId = this.$route.query.callbackId;
if(callbackId) {
let obj = JSON.parse(localStorage.getItem('welfareCreateCallback') || '{}');
obj[callbackId] = true;
localStorage.setItem('welfareCreateCallback', obj);
}
}).catch(() => {
this.loading = false;
});
......@@ -1019,4 +1025,4 @@ export default {
}
}
},
};
\ No newline at end of file
};
......@@ -1461,6 +1461,12 @@ export default {
this.btnLoading = false;
this.$message.error(res.message);
}
let callbackId = this.$route.query.callbackId;
if(callbackId) {
let obj = JSON.parse(localStorage.getItem('welfareCreateCallback') || '{}');
obj[callbackId] = true;
localStorage.setItem('welfareCreateCallback', obj);
}
}).finally(() => this.$emit('updateLoading', false));
}
}
......
......@@ -648,6 +648,12 @@ export default {
} else {
this.btnLoading = false;
this.$message.error(res.message);
let callbackId = this.$route.query.callbackId;
if(callbackId) {
let obj = JSON.parse(localStorage.getItem('welfareCreateCallback') || '{}');
obj[callbackId] = true;
localStorage.setItem('welfareCreateCallback', obj);
}
}
}).finally(() => this.$emit('updateLoading'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment