Commit a673a717 authored by Adrian's avatar Adrian

Comentando temporalmente el logout

parent f7610116
import axios from 'axios';
// import axios from 'axios';
export default {
methods: {
......@@ -84,17 +84,17 @@ export default {
store.commit('setDefault');
},
async logout(router, store) {
if (this.$storage.get('token')) {
const request = {
url: `${this.$baseServer}logout`,
method: 'GET',
headers: {
Authorization: `Bearer ${this.$storage.get('token')}`
}
};
const response = await axios(request);
console.log(response);
}
/* if (this.$storage.get('token')) {
* const request = {
* url: `${this.$baseServer}logout`,
* method: 'GET',
* headers: {
* Authorization: `Bearer ${this.$storage.get('token')}`
* }
* };
* const response = await axios(request);
* console.log(response);
* } */
const storevuex = store || this.$store;
router = router || this.$router;
this.$storage.removeUser();
......
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