М
Size: a a a
М
S
Д
Q
async changeRoles(primary: TRolePosition, secondary?: TRolePosition | null) {Без проверки(перед try) отправка запроса будет как
const roles = {};
if (primary) Object.assign(roles, { primary });
if (secondary) Object.assign(roles, { secondary });
try {
await matchApi.post(`/group/user/change-roles`, null, {
params: roles,
});
this.primaryRole = primary;
this.secondaryRole = secondary;
} ...
}
/group/user/change-roles?PRIMARY=
и от сервера errorS
j
Ю
Ю
j
console.log(JSON.stringify(object, null, 1))
?j
VS
j
v
[
{width: "50%", height: "100%"}
{width: "50%", height: "50%"}
{width: "50%", height: "50%"}
]
OT
VS
v
IS
VS
Д