Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed Jan 1, 2024
1 parent 0400043 commit 31136e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/components/common/Navigator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: {
Expand Down
7 changes: 1 addition & 6 deletions src/router/chat.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/router/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 31136e4

Please sign in to comment.