You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
592 B
24 lines
592 B
export default {
|
|
namespaced: true,
|
|
state: () => ({
|
|
address: {},
|
|
}),
|
|
mutations: {
|
|
selectAddr(state, data) {
|
|
state.address = data;
|
|
}
|
|
},
|
|
getters: {
|
|
selectedAddr(state) {
|
|
return {
|
|
address: `${state.address.provice}${state.address.city}${state.address.area}${state.address.street}${state.address.district}`,
|
|
name: state.address.receive_name,
|
|
phone: state.address.phone,
|
|
addressId: state.address.id
|
|
}
|
|
},
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
}
|