Commit b7a4836a authored by amandazk's avatar amandazk

Limpando o codigo

parent 98e57750
......@@ -60,10 +60,7 @@ export default {
} catch (error) {
console.log("Erro de Login: ", error);
}
},
// redireciona() {
// login(), this.$router.go();
// },
}
},
};
</script>
......
......@@ -74,9 +74,6 @@ export default {
},
},
methods: {
login() {
this.$router.go();
},
logout() {
window.localStorage.removeItem("psIfc");
this.$router.go();
......
......@@ -7,7 +7,7 @@ axios.interceptors.request.use(
const storage = JSON.parse(localStorage.getItem('psIfc'))
if (storage && storage.auth) {
if (storage.auth.loggedIn) {
config.headers.common['Authorization'] = 'Bearer ${storage.auth.user.access}'
config.headers.common['Authorization'] = `Bearer ${storage.auth.user.access}`
}
}
return config
......
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