web_src/src/router/index.js
@@ -1,5 +1,6 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from "../layout/index.vue"
import control from '../components/control.vue'
import deviceList from '../components/DeviceList.vue'
@@ -32,6 +33,12 @@
  routes: [
    {
      path: '/',
      name: 'home',
      component: Layout,
      redirect: '/control',
      children: [
        {
          path: '/control',
      component: control,
    },
    {
@@ -49,11 +56,6 @@
    {
      path: '/streamProxyList',
      component: streamProxyList,
    },
    {
      path: '/login',
      name: '登录',
      component: login,
    },
    {
      path: '/channelList/:deviceId/:parentChannelId/:count/:page',
@@ -106,4 +108,11 @@
      component: rtcPlayer,
    },
  ]
    },
    {
      path: '/login',
      name: '登录',
      component: login,
    },
  ]
})