Refactor: Refine navigation (#214)

This commit is contained in:
Germey authored and GitHub committed 2025-07-13 15:44:50 +08:00
1 parent f000fc2233
commit 9d014e21d2
24 files changed
+300 -195

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import { CHAT_MODEL_GROUP_CHATGPT } from '@/constants';
import { ROUTE_CHATGPT_CONVERSATION, ROUTE_CHATGPT_CONVERSATION_NEW } from './constants';
export default {
path: '/chatgpt',
meta: {
modelGroup: CHAT_MODEL_GROUP_CHATGPT
},
component: () => import('@/layouts/Main.vue'),
children: [
{
path: '',
redirect: {
name: ROUTE_CHATGPT_CONVERSATION_NEW
}
},
{
path: 'conversations',
name: ROUTE_CHATGPT_CONVERSATION_NEW,
component: () => import('@/pages/chat/Conversation.vue')
},
{
path: 'conversations/:id',
name: ROUTE_CHATGPT_CONVERSATION,
component: () => import('@/pages/chat/Conversation.vue')
}
]
};