Blame view
api/dashboard/src/middleware/auth.js
181 Bytes
25df08e6c Merged changes fr... |
1 |
// import store from '~/store' |
0d8c0f816 initial commit |
2 3 |
export default async (to, from, next) => { |
25df08e6c Merged changes fr... |
4 5 6 |
// if (!store.getters['auth/check']) { // next({ name: 'login' }) // } else { |
0d8c0f816 initial commit |
7 |
next() |
25df08e6c Merged changes fr... |
8 |
// } |
0d8c0f816 initial commit |
9 |
} |