qwe
PageProfileService - переписать data -> computed
async status(newValue, oldValue) {
if (oldValue === undefined || oldValue === null) return
const res = await patchService(this.login, this.id, { status: this.status }).catch(() => null)
if (res && res.ok) {
this.$notify({
type: 'success',
title: 'Статус',
text: this.status ? 'Активен' : 'Отключен',
})
}
},
Убрать проверку undefined, null, добавлять в store обновленный статус, считывать статус
PageProfileServices - вынести запросы в page (remove), offer (remove)