Commit 71b2e316 by zhangxw

优惠券bug修复

1 parent b181f954
...@@ -550,7 +550,7 @@ export default class CouponAddForm extends EnhanceFormComponent<any> { ...@@ -550,7 +550,7 @@ export default class CouponAddForm extends EnhanceFormComponent<any> {
this.submitted = true; this.submitted = true;
const payload = this.buildSubmitPayload(); const payload = this.buildSubmitPayload();
DiscountController[this.pageState === 'EDIT' ? 'editCouponTemplate' : 'createCouponTemplate'](this.axios, payload).then(res => { DiscountController[this.pageState === 'EDIT' ? 'editCouponTemplate' : 'createCouponTemplate'](this.axios, payload).then(res => {
this.submitted = true; this.submitted = false;
let { code, message: msg } = res?.data || {}; let { code, message: msg } = res?.data || {};
if (code !== '200') { if (code !== '200') {
message.error(msg || (this.pageState === 'EDIT' ? '更新失败' : '创建失败')); message.error(msg || (this.pageState === 'EDIT' ? '更新失败' : '创建失败'));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!