2025-04-18 20:09:21 +08:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
import { ChatRound } from '@element-plus/icons-vue'
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
component: () => import("@/layouts/MainLayout.vue"),
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "blank",
|
|
|
|
meta: {
|
|
|
|
hidden: true,
|
|
|
|
},
|
|
|
|
component: () => import("@/layouts/blank.vue"),
|
|
|
|
},
|
|
|
|
],
|
2025-04-20 19:46:51 +08:00
|
|
|
redirect: "/chat"
|
2025-04-18 20:09:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/chat",
|
|
|
|
component: () => import("@/layouts/MainLayout.vue"),
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
name: "chat",
|
|
|
|
meta: {
|
|
|
|
icon: ChatRound
|
|
|
|
},
|
|
|
|
component: () => import("@/views/chat/index.vue"),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const router = createRouter({
|
|
|
|
history: createWebHistory(),
|
|
|
|
routes,
|
|
|
|
});
|