Have catch blocks call the auth expire function
This commit is contained in:
parent
c9c1e57187
commit
ae5a697de5
4 changed files with 18 additions and 14 deletions
|
|
@ -82,7 +82,10 @@ export default {
|
|||
this.config = config;
|
||||
this.data = response.data.items;
|
||||
}).catch((err) => {
|
||||
this.error = `${err.name}: ${err.message}`
|
||||
this.error = `${err.name}: ${err.message}`;
|
||||
if (err.status == 401) {
|
||||
this.auth_expired();
|
||||
};
|
||||
});
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue