优化结账账单地址

This commit is contained in:
pushuo 2022-08-29 17:59:37 +08:00
parent 60122b82bc
commit 1e3a799bdb
1 changed files with 2 additions and 2 deletions

View File

@ -321,8 +321,8 @@
$http[type](url, this.dialogAddress.form).then((res) => {
if (type == 'post') {
this.source.addresses.push(res.data)
this.updateCheckout(res.data.id, this.dialogAddress.form.type)
this.form[this.dialogAddress.form.type] = res.data.id
this.updateCheckout(res.data.id, this.dialogAddress.type)
this.form[this.dialogAddress.type] = res.data.id
} else {
this.source.addresses[this.dialogAddress.index] = res.data