fix(customer-vue): router 수정
- router 수정
This commit is contained in:
@@ -37,39 +37,52 @@ const routes = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/home",
|
path: "/home",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: () => import('../views/HomeView')
|
component: () => import('../views/HomeView')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/search",
|
path: "/search",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'search-store',
|
name: 'search-store',
|
||||||
component: () => import('../views/SearchStore')
|
component: () => import('../views/SearchStore')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/history",
|
path: "/history",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'order-history',
|
name: 'order-history',
|
||||||
component: () => import('../views/OrderHistory')
|
component: () => import('../views/OrderHistory')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/favorite",
|
path: "/favorite",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'favorite-store',
|
name: 'favorite-store',
|
||||||
component: () => import('../views/FavoriteStore')
|
component: () => import('../views/FavoriteStore')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/notification",
|
path: "/notification",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'notification',
|
name: 'notification',
|
||||||
component: () => import('../views/NotificationView')
|
component: () => import('../views/NotificationView')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/item/:itemId",
|
path: "/item/:itemId",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'itemDetail',
|
name: 'itemDetail',
|
||||||
component: () => import('../views/ItemDetail')
|
component: () => import('../views/ItemDetail')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/order",
|
path: "/order",
|
||||||
|
beforeEnter: authCheck,
|
||||||
name: 'orderPage',
|
name: 'orderPage',
|
||||||
component: () => import('../views/OrderPage')
|
component: () => import('../views/OrderPage')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/mypage",
|
||||||
|
beforeEnter: authCheck,
|
||||||
|
name: 'mypage',
|
||||||
|
component: () => import('../views/MyPage')
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user