From 31136e4a0076ed8925310ab24ddd90c2fb316135 Mon Sep 17 00:00:00 2001 From: Germey Date: Mon, 1 Jan 2024 16:24:56 +0800 Subject: [PATCH] update --- src/components/common/Navigator.vue | 3 +-- src/router/chat.ts | 7 +------ src/router/constants.ts | 1 - src/router/index.ts | 4 ++-- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/components/common/Navigator.vue b/src/components/common/Navigator.vue index aa08c31..c6f4bdb 100644 --- a/src/components/common/Navigator.vue +++ b/src/components/common/Navigator.vue @@ -46,7 +46,6 @@ import { ROUTE_AUTH_LOGIN, ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW, - ROUTE_CHAT_INDEX, ROUTE_CONSOLE_ROOT, ROUTE_MIDJOURNEY_HISTORY, ROUTE_MIDJOURNEY_INDEX @@ -71,7 +70,7 @@ export default defineComponent({ displayName: this.$t('common.nav.chat'), icon: 'fa-regular fa-comment', image: 'https://cdn.zhishuyun.com/9ad12c99b2.png/thumb_100x100', - routes: [ROUTE_CHAT_INDEX, ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW] + routes: [ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW] }, { route: { diff --git a/src/router/chat.ts b/src/router/chat.ts index 2612877..c0266af 100644 --- a/src/router/chat.ts +++ b/src/router/chat.ts @@ -1,14 +1,9 @@ -import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW, ROUTE_CHAT_INDEX } from './constants'; +import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW } from './constants'; export default { path: '/chat', component: () => import('@/layouts/Chat.vue'), children: [ - { - path: '', - name: ROUTE_CHAT_INDEX, - component: () => import('@/pages/chat/Index.vue') - }, { path: 'conversation', name: ROUTE_CHAT_CONVERSATION_NEW, diff --git a/src/router/constants.ts b/src/router/constants.ts index a9218e1..6540537 100644 --- a/src/router/constants.ts +++ b/src/router/constants.ts @@ -3,7 +3,6 @@ export const ROUTE_INDEX = 'index'; export const ROUTE_AUTH_LOGIN = 'auth-login'; export const ROUTE_AUTH_CALLBACK = 'auth-callback'; -export const ROUTE_CHAT_INDEX = 'chat-index'; export const ROUTE_CHAT_CONVERSATION = 'chat-conversation'; export const ROUTE_CHAT_CONVERSATION_NEW = 'chat-conversation-new'; diff --git a/src/router/index.ts b/src/router/index.ts index c3962db..453fd15 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -3,14 +3,14 @@ import auth from './auth'; import console from './console'; import chat from './chat'; import midjourney from './midjourney'; -import { ROUTE_CHAT_INDEX, ROUTE_INDEX } from './constants'; +import { ROUTE_CHAT_CONVERSATION_NEW, ROUTE_INDEX } from './constants'; const routes = [ { path: '/', name: ROUTE_INDEX, redirect: { - name: ROUTE_CHAT_INDEX + name: ROUTE_CHAT_CONVERSATION_NEW } }, console,