From 887ea275f67a02a23f0293ee64b68bb95e6eff38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com>
Date: Tue, 2 Apr 2024 18:41:41 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=81=8A=E5=A4=A9=E5=AE=A4=E5=89=8D?=
=?UTF-8?q?=E7=AB=AF=E5=B8=83=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/layout/ChatLayout.vue | 17 +++++++
Yi.Bbs.Vue3/src/router/index.js | 19 ++++++++
Yi.Bbs.Vue3/src/views/chathub/Index.vue | 59 +++++++++++++++++++++++++
3 files changed, 95 insertions(+)
create mode 100644 Yi.Bbs.Vue3/src/layout/ChatLayout.vue
create mode 100644 Yi.Bbs.Vue3/src/views/chathub/Index.vue
diff --git a/Yi.Bbs.Vue3/src/layout/ChatLayout.vue b/Yi.Bbs.Vue3/src/layout/ChatLayout.vue
new file mode 100644
index 00000000..707a5ecb
--- /dev/null
+++ b/Yi.Bbs.Vue3/src/layout/ChatLayout.vue
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Yi.Bbs.Vue3/src/router/index.js b/Yi.Bbs.Vue3/src/router/index.js
index febd665c..7875d7e9 100644
--- a/Yi.Bbs.Vue3/src/router/index.js
+++ b/Yi.Bbs.Vue3/src/router/index.js
@@ -3,6 +3,7 @@ import Layout from "../layout/Index.vue";
import NotFound from "../views/error/404.vue";
import LoginLayout from "../layout/LoginLayout.vue";
import ActivityLayout from "../layout/activity/Index.vue";
+import ChatLayout from "../layout/ChatLayout.vue"
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
scrollBehavior(to, from, savedPosition) {
@@ -140,6 +141,24 @@ const router = createRouter({
},
],
},
+
+ {
+ path: "/chat",
+ name: "chat",
+ component: ChatLayout,
+ redirect: "/chat/main",
+ children: [
+ {
+ name: "main",
+ path: "main",
+ component: () => import("../views/chathub/Index.vue"),
+ meta: {
+ title: "聊天室",
+ },
+ }
+ ],
+ },
+
{ path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound },
],
});
diff --git a/Yi.Bbs.Vue3/src/views/chathub/Index.vue b/Yi.Bbs.Vue3/src/views/chathub/Index.vue
new file mode 100644
index 00000000..903131e3
--- /dev/null
+++ b/Yi.Bbs.Vue3/src/views/chathub/Index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
\ No newline at end of file