Am trying to do a post api call in a component but getting this error
Type '{ first_name: string; last_name: string; email: string; role: string; }' has no properties in common with type 'AxiosRequestConfig'
is this a bad way of doing it?
But if I do it through the store its ok, should i be doing all the api calls through the store?
issue is I need the API response on that component
Am using metronic 8.1.1 vue version
Hi George,
Thank you for contacting our support.
To fix the typescript issue you need to wrap your data with params.
{
params: {
// your data here
}
}