1 2 3 4 5 6 7 8 9
// import store from '~/store'export default async (to, from, next) => { // if (!store.getters['auth/check']) { // next({ name: 'login' }) // } else { next() // }}