Commit 2c5bd33b authored by Adrian's avatar Adrian

Validando rutas y session

parent 04568aac
......@@ -200,10 +200,8 @@ export default {
}
if (error.response.status === 401) {
if (window.location.hash !== '#/login') {
console.log(router);
Message.error('Termino la session');
instance.logout(router, store);
store.commit('setAuth', false);
}
}
if (error.response.status === 402) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment