接入前端P0页面真实接口
This commit is contained in:
55
client/src/router/index.ts
Normal file
55
client/src/router/index.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/reservation/orders',
|
||||
},
|
||||
{
|
||||
path: '/reservation/workbench',
|
||||
redirect: '/reservation/orders',
|
||||
},
|
||||
{
|
||||
path: '/reservation/orders',
|
||||
name: 'reservation-order-list',
|
||||
component: () => import('@/views/reservation/ReservationOrderListView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.orders',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reservation/tasks',
|
||||
name: 'reservation-task-list',
|
||||
component: () => import('@/views/reservation/ReservationTaskListView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.taskQueue',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reservation/orders/:orderId',
|
||||
name: 'reservation-order-detail',
|
||||
component: () => import('@/views/reservation/ReservationOrderDetailView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.orderDetail',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reservation/tasks/:taskId',
|
||||
name: 'reservation-task-detail',
|
||||
component: () => import('@/views/reservation/ReservationTaskDetailView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.taskDetail',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reservation/source-messages/:sourceMessageId/conversation',
|
||||
name: 'reservation-source-message-conversation',
|
||||
component: () => import('@/views/reservation/ReservationSourceMessageConversationView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.sourceMessageConversation',
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user