import { createRouter, createWebHashHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' import SetCacheView from '../views/SetCacheView.vue' import GetCacheView from '../views/GetCacheView.vue' import SupportView from '../views/SupportView.vue' const router = createRouter({ history: createWebHashHistory(), routes: [ { path: '/', name: 'home', component: HomeView, }, { path: '/set-cache', name: 'set-cache', // route level code-splitting // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. component: SetCacheView, }, { path: '/get-cache', name: 'get-cache', component: GetCacheView, }, { path: '/support', name: 'support', component: SupportView, }, ], }) console.log('Router created with hash history') export default router