12345678910111213141516171819202122 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- import HomeView from '../views/HomeView.vue'
- const routes = [
- {
- path: '/',
- name: 'Home',
- component: () => import('../views/HomeView.vue')
- },
- {
- path: '/chat',
- name: 'Chat',
- component: () => import('../views/NewChatPage.vue')
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(location.pathname),
- routes
- })
- export default router
|