feat: ✨ 布局,样式统一,集成依赖

This commit is contained in:
何嘉悦
2025-05-19 06:58:57 +08:00
parent b5cddb0041
commit c163da8e8a
37 changed files with 1429 additions and 300 deletions
+9 -3
View File
@@ -1,10 +1,11 @@
import type { RouteRecordRaw } from 'vue-router';
import { createRouter, createWebHashHistory } from 'vue-router';
import { createRouter, createWebHistory } from 'vue-router';
import { jwtGuard } from './permissions';
const routes: Readonly<RouteRecordRaw>[] = [
{
path: '/',
redirect: '/chat',
component: () => import('@/layouts/index.vue'),
children: [
{
@@ -14,9 +15,14 @@ const routes: Readonly<RouteRecordRaw>[] = [
},
{
path: ':id',
name: 'chat',
name: '/chat',
component: () => import('@/pages/chat/index.vue'),
},
{
path: '/chat/home',
name: 'chatHome',
component: () => import('@/pages/chat/home/index.vue'),
},
],
},
{
@@ -27,7 +33,7 @@ const routes: Readonly<RouteRecordRaw>[] = [
] as const;
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes,
});