feat: 新增layout内容

This commit is contained in:
Json_Lee
2025-05-02 19:02:48 +08:00
parent 294e818487
commit 604d1077fe
13 changed files with 368 additions and 15 deletions
+11 -1
View File
@@ -2,7 +2,17 @@ import { createRouter, createWebHashHistory } from 'vue-router';
import { jwtGuard } from './permissions';
const routes = [
{ path: '/', component: () => import('@/components/HelloWorld.vue') },
{
path: '/',
component: () => import('@/layout/index.vue'),
children: [
{
path: ':id',
name: 'chat',
component: () => import('@/pages/chat/index.vue'),
},
],
},
{
path: '/login',
name: 'login',