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