This commit is contained in:
parent
95d1eda7a3
commit
93fb3bc46f
|
|
@ -92,8 +92,8 @@ export default {
|
|||
}
|
||||
console.log(id);
|
||||
const res = id
|
||||
? await $redPackApi.update({ ...this.form, num: this.form.num || "", discType: this.source, type: this.source.type })
|
||||
: await $redPackApi.add({ ...this.form, discType: this.source, type: this.source.type });
|
||||
? await $redPackApi.update({ ...this.form, num: this.form.num || "", discType: this.source, type: this.source })
|
||||
: await $redPackApi.add({ ...this.form, discType: this.source, type: this.source });
|
||||
console.log(res);
|
||||
const { data, msg } = res;
|
||||
if (data && data.code == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue