feat: 订单售后
This commit is contained in:
@@ -81,7 +81,7 @@ export default {
|
||||
this.chosenAddressId = item.id
|
||||
saveChosenAddressId(item.id)
|
||||
|
||||
if (this.$route.query.from === 'checkout') {
|
||||
if (['checkout', 'after-sale'].includes(this.$route.query.from)) {
|
||||
const address = this.addresses.find(addressItem => addressItem.id === item.id)
|
||||
if (address) {
|
||||
try {
|
||||
@@ -101,10 +101,10 @@ export default {
|
||||
}
|
||||
},
|
||||
onAdd() {
|
||||
this.$router.push('/joyful-selection/address/edit')
|
||||
this.$router.push({ path: '/joyful-selection/address/edit', query: { from: this.$route.query.from } })
|
||||
},
|
||||
onEdit(item) {
|
||||
this.$router.push({ path: '/joyful-selection/address/edit', query: { id: item.id } })
|
||||
this.$router.push({ path: '/joyful-selection/address/edit', query: { id: item.id, from: this.$route.query.from } })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user