router moved to src
This commit is contained in:
+1
-1
@@ -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'
|
||||
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
Reference in New Issue
Block a user