You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
683 B
JavaScript

// 路由管理
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
redirect: '/home'
},
{
path: '/home',
name: 'home',
component: () => import('./components/Home.vue')
},
{
path: '/login',
name: 'login',
component: () => import('./components/Login.vue')
},
{
path: '/play',
name: 'play_video',
component: () => import('./components/MyPlayer.vue')
}
]
})