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,
|
IApplication,
|
||||||
IMidjourneyChannel,
|
IMidjourneyChannel,
|
||||||
MidjourneyImagineAction,
|
MidjourneyImagineAction,
|
||||||
IMidjourneyImagineResponse,
|
|
||||||
IMidjourneyPreset,
|
IMidjourneyPreset,
|
||||||
MIDJOURNEY_CHANNEL_FAST,
|
MIDJOURNEY_CHANNEL_FAST,
|
||||||
MIDJOURNEY_CHANNEL_TURBO,
|
MIDJOURNEY_CHANNEL_TURBO,
|
||||||
MIDJOURNEY_CHANNEL_RELAX,
|
MIDJOURNEY_CHANNEL_RELAX,
|
||||||
applicationOperator,
|
applicationOperator,
|
||||||
midjourneyOperator,
|
midjourneyOperator,
|
||||||
MidjourneyImagineState,
|
|
||||||
IMidjourneyImagineTask,
|
IMidjourneyImagineTask,
|
||||||
IMidjourneyImagineRequest
|
IMidjourneyImagineRequest
|
||||||
} from '@/operators';
|
} from '@/operators';
|
||||||
|
|||||||
+1
-7
@@ -1,10 +1,4 @@
|
|||||||
import {
|
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW, ROUTE_CHAT_INDEX } from './constants';
|
||||||
ROUTE_AUTH_CALLBACK,
|
|
||||||
ROUTE_AUTH_LOGIN,
|
|
||||||
ROUTE_CHAT_CONVERSATION,
|
|
||||||
ROUTE_CHAT_CONVERSATION_NEW,
|
|
||||||
ROUTE_CHAT_INDEX
|
|
||||||
} from './constants';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
path: '/chat',
|
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_INDEX = 'midjourney-index';
|
||||||
export const ROUTE_MIDJOURNEY_HISTORY = 'midjourney-history';
|
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 auth from './auth';
|
||||||
import chat from './chat';
|
import chat from './chat';
|
||||||
import midjourney from './midjourney';
|
import midjourney from './midjourney';
|
||||||
import { ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
|
import { ROUTE_CHAT_INDEX, ROUTE_INDEX } from './constants';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: ROUTE_INDEX,
|
name: ROUTE_INDEX,
|
||||||
redirect: {
|
redirect: {
|
||||||
name: ROUTE_CONVERSATION_NEW
|
name: ROUTE_CHAT_INDEX
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auth,
|
auth,
|
||||||
|
|||||||
Reference in new issue
Block a user