feat: 代码开发中...

This commit is contained in:
2023-03-16 07:04:56 +08:00
parent 1a377c911f
commit 63147e4c08
34 changed files with 482 additions and 218 deletions

View File

@@ -1,21 +1,22 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView
name: 'index',
component: () => import('@/views/IndexView.vue')
},
{
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')
path: '/register',
name: 'register',
component: () => import('@/views/RegisterView.vue')
},
{
path: '/login',
name: 'login',
component: () => import('@/views/LoginView.vue')
}
]
})