finish setup of electron app using vue & router

This commit is contained in:
janis
2023-05-24 10:45:26 +02:00
parent 9d485c2b73
commit 5e65f3b52c
5 changed files with 8593 additions and 75 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const routes = [
@@ -18,8 +18,10 @@ const routes = [
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
history: process.env.IS_ELECTRON ? createWebHashHistory() : createWebHistory(process.env.BASE_URL),
routes
})
console.log( process.env.IS_ELECTRON );
export default router