import { createRouter, createWebHashHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' import LoginView from '../views/LoginView.vue' const routes = [ { path: '/', name: 'Home', component: HomeView }, { path: '/login', name: 'Login', component: LoginView } ] const router = createRouter({ history: createWebHashHistory(location.pathname), routes }) export default router