Files
Nexior/src/router/index.ts
T
2023-10-05 17:04:35 +08:00

26 lines
469 B
TypeScript

import { createRouter, createWebHistory } from 'vue-router';
import chat from './chat';
import midjourney from './midjourney';
import { ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
const routes = [
{
path: '/',
name: ROUTE_INDEX,
redirect: {
name: ROUTE_CONVERSATION_NEW
}
},
chat,
midjourney
];
const router = createRouter({
history: createWebHistory(),
routes
});
export default router;
export * from './constants';