This commit is contained in:
gyq 2025-01-13 16:45:07 +08:00
parent 95d1eda7a3
commit 93fb3bc46f
1 changed files with 2 additions and 2 deletions

View File

@ -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) {