1234567891011121314151617181920212223 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- import HomeView from '../views/HomeView.vue'
- import ChatWithDocumentView from '../views/ChatWithDocumentView.vue'
- const routes = [
- {
- path: '/',
- name: 'home',
- component: HomeView
- },
- {
- path: '/chat-with-document',
- name: 'ChatWithDocument',
- component: ChatWithDocumentView
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(location.pathname),
- routes
- })
- export default router
|