diff --git a/owner-vue/src/api/order.js b/owner-vue/src/api/order.js index b309bf6..cdc0d8b 100644 --- a/owner-vue/src/api/order.js +++ b/owner-vue/src/api/order.js @@ -25,5 +25,8 @@ export default { orderStatus: orderStatus } return axios.patch(process.env.VUE_APP_OWNER_SERVICE_BASEURL + "/order-service/order/" + orderId, body); + }, + findDashboard(){ + return axios.get(process.env.VUE_APP_API_URL + "/order/dashboard"); } } \ No newline at end of file diff --git a/owner-vue/src/router/index.js b/owner-vue/src/router/index.js index f9e74ea..ac6ebec 100644 --- a/owner-vue/src/router/index.js +++ b/owner-vue/src/router/index.js @@ -24,10 +24,16 @@ const authCheck = async function (to, from, next) { }; const routes = [ { - path: '/order', - redirect: 'order', + path: '/', + redirect: 'dashboard', component: DashboardLayout, children: [ + { + path: '/dashboard', + name: 'dashboard', + beforeEnter: authCheck, + component: () => import('./../views/HomeDashBoard') + }, { path: '/category', name: 'category', @@ -61,7 +67,7 @@ const routes = [ ] }, { - path: '/', + path: '/login', redirect: 'login', component: AuthLayout, children: [ diff --git a/owner-vue/src/views/HomeDashBoard.vue b/owner-vue/src/views/HomeDashBoard.vue new file mode 100644 index 0000000..7d96b3d --- /dev/null +++ b/owner-vue/src/views/HomeDashBoard.vue @@ -0,0 +1,88 @@ + + + + + + + + + + {{ item.title }} + 00~00 + + + {{item.amount}} + + + + + + + + + + + + + mdi-currency-usd + + 판매금액 + + + + + + + + + + + + + + + \ No newline at end of file