|  |  |  | 
|---|
|  |  |  | import VueRouter from 'vue-router' | 
|---|
|  |  |  | import Layout from "../layout/index.vue" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import control from '../components/control.vue' | 
|---|
|  |  |  | import console from '../components/console.vue' | 
|---|
|  |  |  | import deviceList from '../components/DeviceList.vue' | 
|---|
|  |  |  | import channelList from '../components/channelList.vue' | 
|---|
|  |  |  | import pushVideoList from '../components/PushVideoList.vue' | 
|---|
|  |  |  | 
|---|
|  |  |  | path: '/', | 
|---|
|  |  |  | name: 'home', | 
|---|
|  |  |  | component: Layout, | 
|---|
|  |  |  | redirect: '/control', | 
|---|
|  |  |  | redirect: '/console', | 
|---|
|  |  |  | children: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/control', | 
|---|
|  |  |  | component: control, | 
|---|
|  |  |  | path: '/console', | 
|---|
|  |  |  | component: console, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/live', | 
|---|