注册
This commit is contained in:
+10
-3
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import RegisteredVue from '../views/registered/Registered.vue'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
@@ -13,15 +14,21 @@ const routes = [
|
||||
{
|
||||
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')
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'Login',
|
||||
component: () => import('../views/login/Login.vue')
|
||||
},
|
||||
{
|
||||
path: '/registered',
|
||||
name: 'Registered',
|
||||
component:RegisteredVue
|
||||
}
|
||||
,{
|
||||
path:'',
|
||||
redirect:'/home'
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user