From 4175eb2b259dacd33df8912dd3564a6f0dea9132 Mon Sep 17 00:00:00 2001 From: bum12ark Date: Thu, 17 Mar 2022 16:51:46 +0900 Subject: [PATCH] =?UTF-8?q?fix(customer-vue):=20vue=20router=20beforeEnter?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 자식 컴포넌트들에 라우터 인터셉터 추가 --- customer-vue/src/router/router.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/customer-vue/src/router/router.js b/customer-vue/src/router/router.js index 4b85163..beb5142 100644 --- a/customer-vue/src/router/router.js +++ b/customer-vue/src/router/router.js @@ -38,36 +38,43 @@ const routes = [ { path: "/home", name: 'home', + beforeEnter: authCheck, component: () => import('../views/HomeView') }, { path: "/search", name: 'search-store', + beforeEnter: authCheck, component: () => import('../views/SearchStore') }, { path: "/history", name: 'order-history', + beforeEnter: authCheck, component: () => import('../views/OrderHistory') }, { path: "/favorite", name: 'favorite-store', + beforeEnter: authCheck, component: () => import('../views/FavoriteStore') }, { path: "/notification", name: 'notification', + beforeEnter: authCheck, component: () => import('../views/NotificationView') }, { path: "/item/:itemId", name: 'itemDetail', + beforeEnter: authCheck, component: () => import('../views/ItemDetail') }, { path: "/order", name: 'orderPage', + beforeEnter: authCheck, component: () => import('../views/OrderPage') }, ]