async sendRequest(ctx?: any, payload?: any) {
const response = await requestToApi(
"/api/login/...,
"post",
false,
payload
);
if (response.token !== null) {
ctx.commit("updateToken", response.token);
} else {
Vue.notify({
group: "auth",
type: "error",
title: "No authorize",
text: "Please sign in!"
});
}
}