[WIP] Исправил отправку основных данных
This commit is contained in:
@@ -165,7 +165,6 @@ const getters = {
|
||||
street: registrationAddress?.street || "",
|
||||
house: registrationAddress?.house || "",
|
||||
flat: registrationAddress?.flat || "",
|
||||
category: "Адрес регистрации",
|
||||
},
|
||||
residenceAddress: {
|
||||
region: residenceAddress?.region || "",
|
||||
@@ -173,7 +172,6 @@ const getters = {
|
||||
street: residenceAddress?.street || "",
|
||||
house: residenceAddress?.house || "",
|
||||
flat: residenceAddress?.flat || "",
|
||||
category: "Адрес проживания",
|
||||
},
|
||||
insuranceDMS: {
|
||||
series: DMS?.series,
|
||||
@@ -429,9 +427,17 @@ const getters = {
|
||||
};
|
||||
|
||||
const actions = {
|
||||
postAddress(context, { id, address }) {
|
||||
postCreateAddress(context, { id, address, category }) {
|
||||
fetchWrapper.post(`address`, {
|
||||
person_id: id,
|
||||
...address,
|
||||
category: category,
|
||||
});
|
||||
},
|
||||
postUpdateAddress(context, { id, address, category }) {
|
||||
fetchWrapper.post(`address/${id}`, {
|
||||
...address,
|
||||
category: category,
|
||||
});
|
||||
},
|
||||
deleteItemData({ commit }, props) {
|
||||
|
||||
Reference in New Issue
Block a user