vue 정리 하기
AuthorizePage
router.beforeEach((to, from, next) => {
const auth = to.meta?.auth || false
const email = store.state.me?.email || ''
if (auth && email !== 'admin@gmail.com')
return next({
path: '/402',
params: { id: 3 },
// query: { message: '402 접근이 제한된 페이지 입니다' },
})
next()
})