diff --git a/dashboard/src/router/ChatBoxRoutes.ts b/dashboard/src/router/ChatBoxRoutes.ts index f19fb204b..393ad8f68 100644 --- a/dashboard/src/router/ChatBoxRoutes.ts +++ b/dashboard/src/router/ChatBoxRoutes.ts @@ -2,13 +2,20 @@ const ChatBoxRoutes = { path: '/chatbox', component: () => import('@/layouts/blank/BlankLayout.vue'), children: [ - { - name: 'ChatBox', - path: '/chatbox', - component: () => import('@/views/ChatBoxPage.vue') - } + { + name: 'ChatBox', + path: '/chatbox', + component: () => import('@/views/ChatBoxPage.vue'), + children: [ + { + path: ':conversationId', + name: 'ChatBoxDetail', + component: () => import('@/views/ChatBoxPage.vue'), + props: true + } + ] + } ] - }; - - export default ChatBoxRoutes; - \ No newline at end of file +}; + +export default ChatBoxRoutes; diff --git a/dashboard/src/router/MainRoutes.ts b/dashboard/src/router/MainRoutes.ts index 80910b8e3..0c2d9cf03 100644 --- a/dashboard/src/router/MainRoutes.ts +++ b/dashboard/src/router/MainRoutes.ts @@ -81,7 +81,15 @@ const MainRoutes = { { name: 'Chat', path: '/chat', - component: () => import('@/views/ChatPage.vue') + component: () => import('@/views/ChatPage.vue'), + children: [ + { + path: ':conversationId', + name: 'ChatDetail', + component: () => import('@/views/ChatPage.vue'), + props: true + } + ] }, { name: 'Settings', diff --git a/dashboard/src/views/ChatPage.vue b/dashboard/src/views/ChatPage.vue index 9656363e6..053b15810 100644 --- a/dashboard/src/views/ChatPage.vue +++ b/dashboard/src/views/ChatPage.vue @@ -111,13 +111,13 @@ const props = defineProps({