Fix unauthorized errors
This commit is contained in:
@@ -95,7 +95,7 @@ export class baseRestService {
|
||||
transitionOut: "fadeOut",
|
||||
})
|
||||
}
|
||||
else if (r && (r.status >= 400)) {
|
||||
else if (r && (r.status >= 400) && (r.status != 401)) {
|
||||
var msg = (r.data.message != null) ? (store.getters.getLabel(r.data.message) || r.data.message) : "Generic error";
|
||||
(iziToast as any).error({
|
||||
title: r.config.url,
|
||||
|
||||
Reference in New Issue
Block a user