初始化底座

This commit is contained in:
aixianling
2024-05-22 17:03:33 +08:00
parent aba9c3a8fe
commit 27ea4bc032
14 changed files with 342 additions and 62 deletions

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

@@ -0,0 +1,27 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
Vue.use(VueRouter)
const router = new VueRouter({
mode: 'history',
base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
name: 'home',
component: HomeView
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/AboutView.vue')
}
]
})
export default router