From 60651736a537dc55d49ace93c28ce6cb7a13eb0e Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Tue, 10 Jun 2025 15:02:18 +0800
Subject: [PATCH] feat: chatbox page
---
dashboard/src/router/ChatBoxRoutes.ts | 14 +
dashboard/src/router/index.ts | 4 +-
dashboard/src/views/ChatBoxPage.vue | 36 +++
dashboard/src/views/ChatPage.vue | 354 +++++++++++++++++++-------
4 files changed, 309 insertions(+), 99 deletions(-)
create mode 100644 dashboard/src/router/ChatBoxRoutes.ts
create mode 100644 dashboard/src/views/ChatBoxPage.vue
diff --git a/dashboard/src/router/ChatBoxRoutes.ts b/dashboard/src/router/ChatBoxRoutes.ts
new file mode 100644
index 000000000..f19fb204b
--- /dev/null
+++ b/dashboard/src/router/ChatBoxRoutes.ts
@@ -0,0 +1,14 @@
+const ChatBoxRoutes = {
+ path: '/chatbox',
+ component: () => import('@/layouts/blank/BlankLayout.vue'),
+ children: [
+ {
+ name: 'ChatBox',
+ path: '/chatbox',
+ component: () => import('@/views/ChatBoxPage.vue')
+ }
+ ]
+ };
+
+ export default ChatBoxRoutes;
+
\ No newline at end of file
diff --git a/dashboard/src/router/index.ts b/dashboard/src/router/index.ts
index c44e0249d..738fdda1d 100644
--- a/dashboard/src/router/index.ts
+++ b/dashboard/src/router/index.ts
@@ -1,13 +1,15 @@
import { createRouter, createWebHistory } from 'vue-router';
import MainRoutes from './MainRoutes';
import AuthRoutes from './AuthRoutes';
+import ChatBoxRoutes from './ChatBoxRoutes';
import { useAuthStore } from '@/stores/auth';
export const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
MainRoutes,
- AuthRoutes
+ AuthRoutes,
+ ChatBoxRoutes
]
});
diff --git a/dashboard/src/views/ChatBoxPage.vue b/dashboard/src/views/ChatBoxPage.vue
new file mode 100644
index 000000000..5bbbfe08d
--- /dev/null
+++ b/dashboard/src/views/ChatBoxPage.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard/src/views/ChatPage.vue b/dashboard/src/views/ChatPage.vue
index 0171e3e7a..f0acac487 100644
--- a/dashboard/src/views/ChatPage.vue
+++ b/dashboard/src/views/ChatPage.vue
@@ -1,24 +1,52 @@
-