fix(customer-vue): vue router beforeEnter 추가

- 자식 컴포넌트들에 라우터 인터셉터 추가
This commit is contained in:
bum12ark
2022-03-17 16:51:46 +09:00
parent 9d43a18d82
commit 4175eb2b25

View File

@@ -38,36 +38,43 @@ const routes = [
{ {
path: "/home", path: "/home",
name: 'home', name: 'home',
beforeEnter: authCheck,
component: () => import('../views/HomeView') component: () => import('../views/HomeView')
}, },
{ {
path: "/search", path: "/search",
name: 'search-store', name: 'search-store',
beforeEnter: authCheck,
component: () => import('../views/SearchStore') component: () => import('../views/SearchStore')
}, },
{ {
path: "/history", path: "/history",
name: 'order-history', name: 'order-history',
beforeEnter: authCheck,
component: () => import('../views/OrderHistory') component: () => import('../views/OrderHistory')
}, },
{ {
path: "/favorite", path: "/favorite",
name: 'favorite-store', name: 'favorite-store',
beforeEnter: authCheck,
component: () => import('../views/FavoriteStore') component: () => import('../views/FavoriteStore')
}, },
{ {
path: "/notification", path: "/notification",
name: 'notification', name: 'notification',
beforeEnter: authCheck,
component: () => import('../views/NotificationView') component: () => import('../views/NotificationView')
}, },
{ {
path: "/item/:itemId", path: "/item/:itemId",
name: 'itemDetail', name: 'itemDetail',
beforeEnter: authCheck,
component: () => import('../views/ItemDetail') component: () => import('../views/ItemDetail')
}, },
{ {
path: "/order", path: "/order",
name: 'orderPage', name: 'orderPage',
beforeEnter: authCheck,
component: () => import('../views/OrderPage') component: () => import('../views/OrderPage')
}, },
] ]