mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-17 14:13:43 +08:00
48 lines
1.0 KiB
TypeScript
48 lines
1.0 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
function Layout() {
|
|
return import('@/layouts/index.vue');
|
|
}
|
|
|
|
const routes: RouteRecordRaw = {
|
|
path: '/chat',
|
|
component: Layout,
|
|
redirect: '/chat/chat',
|
|
name: 'chatMenu',
|
|
meta: {
|
|
title: '数据管理',
|
|
icon: 'majesticons:data-line',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'dashboard',
|
|
name: 'dashboardMenu',
|
|
component: () => import('@/views/users/index.vue'),
|
|
meta: {
|
|
title: '用户信息',
|
|
icon: 'fa6-solid:list-ul',
|
|
},
|
|
},
|
|
{
|
|
path: 'list',
|
|
name: 'chatMenuList',
|
|
component: () => import('@/views/chat/chat.vue'),
|
|
meta: {
|
|
title: '对话记录',
|
|
icon: 'material-symbols-light:chat-outline',
|
|
},
|
|
},
|
|
{
|
|
path: 'auto-reply',
|
|
name: 'ReplyMenuList',
|
|
component: () => import('@/views/sensitive/autpReply.vue'),
|
|
meta: {
|
|
title: '内容预设',
|
|
icon: 'ic:outline-question-answer',
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default routes;
|