fix ==> redirectToLink
This commit is contained in:
parent
370050eab9
commit
6772b0325b
5 changed files with 54 additions and 16 deletions
|
|
@ -29,6 +29,8 @@ http.interceptors.response.use(
|
|||
if (typeof error !== undefined) {
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
if (error.hasOwnProperty("response")) {
|
||||
console.log("error.response", error.response);
|
||||
|
||||
if (error.response.status === 403) {
|
||||
window.location.href = "/error";
|
||||
// Store.commit("SET_ERROR_MESSAGE", error.response.data.message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue