This commit is contained in:
2024-01-10 18:49:07 +11:00
parent eb242ae4af
commit bfee31c0db
29 changed files with 83 additions and 235 deletions

27
src/router/index.js Normal file
View File

@@ -0,0 +1,27 @@
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const routes = [
{
path: '/',
name: 'home',
component: HomeView
},
{
path: '/about',
name: 'about',
component: () => import( '../views/AboutView.vue' )
},
{
path: '/settings',
name: 'settings',
component: () => import( '../views/SettingsView.vue' )
}
]
const router = createRouter({
history: process.env.IS_ELECTRON ? createWebHashHistory() : createWebHistory(process.env.BASE_URL),
routes
})
export default router