mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2025-02-16 19:38:26 +00:00
error handler
This commit is contained in:
parent
2dad506280
commit
39effc3744
1 changed files with 8 additions and 4 deletions
|
@ -31,10 +31,14 @@ const actions = {
|
|||
})
|
||||
.then((response) => {
|
||||
commit('UPDATE_PLEX_SERVERS', response.data)
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
})
|
||||
.catch(function (error) {
|
||||
if (error.response) {
|
||||
console.log(error.response.data)
|
||||
console.log(error.response.status)
|
||||
alert(error.response.data.error)
|
||||
}
|
||||
});
|
||||
|
||||
const getters = {
|
||||
plexServers: state => state.plexServers
|
||||
|
|
Loading…
Add table
Reference in a new issue