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

+8 -9
View File
@@ -2,6 +2,9 @@ import { createRouter, createWebHistory } from 'vue-router';
import auth from './auth';
import console from './console';
import chat from './chat';
import grok from './grok';
import deepseek from './deepseek';
import chatgpt from './chatgpt';
import midjourney from './midjourney';
import distribution from './distribution';
import chatdoc from './chatdoc';
@@ -16,26 +19,22 @@ import suno from './suno';
import site from './site';
import profile from './profile';
import { ROUTE_INDEX } from './constants';
import { ROUTE_CHATGPT_CONVERSATION_NEW } from './constants';
import { DEFAULT_LOCALE, setI18nLanguage } from '@/i18n';
import { getCookie } from 'typescript-cookie';
const routes = [
{
path: '/',
component: () => import('@/layouts/Index.vue'),
children: [
{
path: '',
name: ROUTE_INDEX,
component: () => import('@/pages/index/Index.vue')
}
]
redirect: { name: ROUTE_CHATGPT_CONVERSATION_NEW }
},
console,
chatdoc,
auth,
chat,
chatgpt,
grok,
deepseek,
qrart,
luma,
pika,