Skip to content

Commit

Permalink
fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed Dec 17, 2023
1 parent edf196e commit 013a611
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/pages/midjourney/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ import {
IApplication,
IMidjourneyChannel,
MidjourneyImagineAction,
IMidjourneyImagineResponse,
IMidjourneyPreset,
MIDJOURNEY_CHANNEL_FAST,
MIDJOURNEY_CHANNEL_TURBO,
MIDJOURNEY_CHANNEL_RELAX,
applicationOperator,
midjourneyOperator,
MidjourneyImagineState,
IMidjourneyImagineTask,
IMidjourneyImagineRequest
} from '@/operators';
Expand Down
8 changes: 1 addition & 7 deletions src/router/chat.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
ROUTE_AUTH_CALLBACK,
ROUTE_AUTH_LOGIN,
ROUTE_CHAT_CONVERSATION,
ROUTE_CHAT_CONVERSATION_NEW,
ROUTE_CHAT_INDEX
} from './constants';
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW, ROUTE_CHAT_INDEX } from './constants';

export default {
path: '/chat',
Expand Down
3 changes: 0 additions & 3 deletions src/router/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ export const ROUTE_CHAT_CONVERSATION_NEW = 'chat-conversation-new';

export const ROUTE_MIDJOURNEY_INDEX = 'midjourney-index';
export const ROUTE_MIDJOURNEY_HISTORY = 'midjourney-history';

export const ROUTE_CONVERSATION_NEW = 'conversation-new';
export const ROUTE_CONVERSATION_DETAIL = 'conversation-detail';
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { createRouter, createWebHistory } from 'vue-router';
import auth from './auth';
import chat from './chat';
import midjourney from './midjourney';
import { ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
import { ROUTE_CHAT_INDEX, ROUTE_INDEX } from './constants';

const routes = [
{
path: '/',
name: ROUTE_INDEX,
redirect: {
name: ROUTE_CONVERSATION_NEW
name: ROUTE_CHAT_INDEX
}
},
auth,
Expand Down

0 comments on commit 013a611

Please sign in to comment.