import Vue from 'vue' import VueRouter from 'vue-router' import HomeView from '../views/home.vue' import residentAnalysis from '@/views/residentAnalysis/index.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: 'home', component: HomeView, }, { path: '/residentAnalysis', name: 'residentAnalysis', component: residentAnalysis, }, ] const router = new VueRouter({ mode: 'hash', base: process.env.BASE_URL, routes, }) export default router