This commit is contained in:
jiayuqi7813
2022-05-21 23:35:48 +08:00
commit 601d9c2831
20 changed files with 1558 additions and 0 deletions

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

@@ -0,0 +1,21 @@
import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'
const routerHistory = createWebHistory()
const router = createRouter({
history: routerHistory,
routes: [
{
path: '/home',
name:'Home',
component: () => import('../views/Home.vue')
},
{
path:'/login',
name:'Login',
component: Login,
}
]
})
export default router