项目骨架已搭建好

This commit is contained in:
2023-01-14 23:33:53 +08:00
parent 8911265e65
commit 6f564eaa60
7 changed files with 36 additions and 121 deletions
+3 -16
View File
@@ -1,24 +1,11 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import { createRouter, createWebHistory } from 'vue-router'
const 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(/* webpackChunkName: "about" */ '../views/AboutView.vue')
}
]
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes
})