check-auth.js 250 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
// import store from '~/store'

export default async (to, from, next) => {
// if (!store.getters['auth/check'] && store.getters['auth/token']) {
// try {
// await store.dispatch('auth/fetchUser')
// } catch (e) { }
// }

next()
}