fix route
This commit is contained in:
1 parent
8832489390
commit
e88fdb73be
4 files changed
+3
-14
No files matched your search
@@ -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';
|
||||
|
||||
+1
-7
@@ -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',
|
||||
|
||||
@@ -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';
|
||||
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user