[WIP] Добавил выбор категорий и их отправку на форме контактов, исправил отправку данных, фикс стилей

This commit is contained in:
megavrilinvv
2023-04-19 17:18:22 +03:00
parent 3c210a781a
commit f66c6420b0
4 changed files with 109 additions and 84 deletions

View File

@@ -46,8 +46,8 @@ const state = () => ({
organization: null,
},
benefit: {
id: null,
name: null,
discount: null,
photo: null,
},
},
@@ -128,7 +128,13 @@ const getters = {
},
benefit: {
name: person?.benefit?.name,
discount: person?.benefit?.discount,
id: person?.benefit?.id,
photo: person?.photo_benefit
? {
photo: rootState.getUrl + person?.photo_benefit,
file: null,
}
: {},
},
};
},