登录页

This commit is contained in:
asd
2020-09-25 15:23:51 +08:00
parent f7dd399ec1
commit 84e6700dfc
9 changed files with 132 additions and 18 deletions

View File

@@ -1,20 +1,26 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Login from "../views/login/Login.vue"
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'Home',
component: Home
},
// {
// 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/About.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(/* webpackChunkName: "about" */ '../views/About.vue')
}
path: '/login',
name: 'Login',
component:Login
},
]
const router = createRouter({