import { createRouter , createWebHistory , createWebHashHistory , RouteRecordRaw , } from "vue-router" ; import Home from "../views/Home.vue" ; const routes = [ { path : "/home" , component : Home , } , ] ; const router = createRouter ( { history : process . env . IS_ELECTRON ? createWebHashHistory ( process . env . BASE_URL ) : createWebHistory ( process . env . BASE_URL ) , routes , } ) ; export default router ;