H5视频代码
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
export const constantRouterMap = [
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('@/views/home'),
|
||||
redirect: 'home'
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
component: () => import('@/views/home'),
|
||||
name: 'Home',
|
||||
// meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||
},
|
||||
{
|
||||
path: '/room',
|
||||
component: () => import('@/views/room'),
|
||||
name: "Room"
|
||||
}
|
||||
]
|
||||
|
||||
const router = new Router({
|
||||
routes: constantRouterMap
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user