router moved to src

This commit is contained in:
2026-09-06 04:28:07 +03:00
parent 3c642629d1
commit 65aebf3a2e
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '/src/assets/styles/app.css'
import App from './App.vue'
import { router } from '/router.js'
import { router } from './router'
import ui from '@nuxt/ui/vue-plugin'
import { createHead } from '@unhead/vue/client'
+19
View File
@@ -0,0 +1,19 @@
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
component: () => import('/src/pages/index.vue'),
name: 'Index',
},
{
path: '/about',
component: () => import('/src/pages/about.vue'),
name: 'About',
},
]
export const router = createRouter({
history: createWebHistory(),
routes,
})