9 lines
252 B
JavaScript
9 lines
252 B
JavaScript
//If the user has a token, we send it to index
|
|
//Si el usuario tiene token lo enviamos a index
|
|
export default function({ store, redirect }) {
|
|
store.dispatch('readToken');
|
|
|
|
if (store.state.auth) {
|
|
return redirect('/compras')
|
|
}
|
|
}
|