feat: page

This commit is contained in:
zzc
2025-11-27 22:49:49 +08:00
parent 3c3b8e1894
commit e59a11c05e
9 changed files with 978 additions and 1 deletions

View File

@@ -48,6 +48,81 @@ export const asyncRoutes = [
},
],
},
{
path: '/maomaotou',
component: Layout,
redirect: 'noRedirect',
name: 'CxshMini',
meta: { title: '猫猫头', icon: 'cat', permissions: ['admin'] },
children: [
{
path: 'cat',
component: EmptyLayout,
alwaysShow: true,
redirect: 'noRedirect',
name: 'cat',
meta: {
title: '猫猫',
icon: 'cat',
permissions: ['admin'],
},
children: [
{
path: 'cat',
name: 'Cat',
component: () => import('@/views/maomao/cat/cat/index'),
meta: { title: '猫猫' },
},
],
},
{
path: 'post',
component: EmptyLayout,
alwaysShow: true,
redirect: 'noRedirect',
name: 'Post',
meta: {
title: '帖子',
icon: 'post',
permissions: ['admin'],
},
children: [
{
path: 'post',
name: 'Post',
component: () => import('@/views/maomao/post/post/index'),
meta: { title: '帖子' },
},
],
},
{
path: 'user',
component: EmptyLayout,
alwaysShow: true,
redirect: 'noRedirect',
name: 'User',
meta: {
title: '用户',
icon: 'user',
permissions: ['admin'],
},
children: [
{
path: 'user',
name: 'User',
component: () => import('@/views/maomao/user/user/index'),
meta: { title: '用户' },
},
{
path: 'userChat',
name: 'UserChat',
component: () => import('@/views/maomao/user/chat/index'),
meta: { title: '聊天' },
},
],
},
],
},
{
path: '/cxshMini',
component: Layout,