|  |  |  | 
|---|
|  |  |  | import Vue from 'vue' | 
|---|
|  |  |  | 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 gbRecordDetail from '../components/GBRecordDetail.vue' | 
|---|
|  |  |  | import pushVideoList from '../components/PushVideoList.vue' | 
|---|
|  |  |  | import streamProxyList from '../components/StreamProxyList.vue' | 
|---|
|  |  |  | import pLatformStreamList from '../components/PLatformStreamList.vue' | 
|---|
|  |  |  | import devicePosition from  '../components/devicePosition.vue' | 
|---|
|  |  |  | import map from '../components/map.vue' | 
|---|
|  |  |  | import login from '../components/Login.vue' | 
|---|
|  |  |  | import parentPlatformList from '../components/ParentPlatformList.vue' | 
|---|
|  |  |  | import cloudRecord from '../components/CloudRecord.vue' | 
|---|
|  |  |  | import mediaServerManger from '../components/MediaServerManger.vue' | 
|---|
|  |  |  | import web from '../components/setting/Web.vue' | 
|---|
|  |  |  | import sip from '../components/setting/Sip.vue' | 
|---|
|  |  |  | import media from '../components/setting/Media.vue' | 
|---|
|  |  |  | import live from '../components/live.vue' | 
|---|
|  |  |  | import deviceTree from '../components/common/DeviceTree.vue' | 
|---|
|  |  |  | import userManager from '../components/UserManager.vue' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import wasmPlayer from '../components/common/jessibuca.vue' | 
|---|
|  |  |  | import rtcPlayer from '../components/dialog/rtcPlayer.vue' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const originalPush = VueRouter.prototype.push | 
|---|
|  |  |  | VueRouter.prototype.push = function push(location) { | 
|---|
|  |  |  | 
|---|
|  |  |  | routes: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/', | 
|---|
|  |  |  | component: control, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/deviceList', | 
|---|
|  |  |  | component: deviceList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/pushVideoList', | 
|---|
|  |  |  | component: pushVideoList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/pLatformStreamList', | 
|---|
|  |  |  | component: pLatformStreamList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/streamProxyList', | 
|---|
|  |  |  | component: streamProxyList, | 
|---|
|  |  |  | name: 'home', | 
|---|
|  |  |  | component: Layout, | 
|---|
|  |  |  | redirect: '/console', | 
|---|
|  |  |  | children: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/console', | 
|---|
|  |  |  | component: console, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/live', | 
|---|
|  |  |  | component: live, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/deviceList', | 
|---|
|  |  |  | component: deviceList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/pushVideoList', | 
|---|
|  |  |  | component: pushVideoList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/streamProxyList', | 
|---|
|  |  |  | component: streamProxyList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/channelList/:deviceId/:parentChannelId/', | 
|---|
|  |  |  | name: 'channelList', | 
|---|
|  |  |  | component: channelList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/gbRecordDetail/:deviceId/:channelId/', | 
|---|
|  |  |  | name: 'gbRecordDetail', | 
|---|
|  |  |  | component: gbRecordDetail, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/parentPlatformList/:count/:page', | 
|---|
|  |  |  | name: 'parentPlatformList', | 
|---|
|  |  |  | component: parentPlatformList, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/map/:deviceId/:parentChannelId/:count/:page', | 
|---|
|  |  |  | name: 'map', | 
|---|
|  |  |  | component: map, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/cloudRecord', | 
|---|
|  |  |  | name: 'cloudRecord', | 
|---|
|  |  |  | component: cloudRecord, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/mediaServerManger', | 
|---|
|  |  |  | name: 'mediaServerManger', | 
|---|
|  |  |  | component: mediaServerManger, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/setting/web', | 
|---|
|  |  |  | name: 'web', | 
|---|
|  |  |  | component: web, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/setting/sip', | 
|---|
|  |  |  | name: 'sip', | 
|---|
|  |  |  | component: sip, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/setting/media', | 
|---|
|  |  |  | name: 'media', | 
|---|
|  |  |  | component: media, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/map', | 
|---|
|  |  |  | name: 'map', | 
|---|
|  |  |  | component: map, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/userManager', | 
|---|
|  |  |  | name: 'userManager', | 
|---|
|  |  |  | component: userManager, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/login', | 
|---|
|  |  |  | 
|---|
|  |  |  | component: login, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/channelList/:deviceId/:parentChannelId/:count/:page', | 
|---|
|  |  |  | name: 'channelList', | 
|---|
|  |  |  | component: channelList, | 
|---|
|  |  |  | path: '/test', | 
|---|
|  |  |  | name: 'deviceTree', | 
|---|
|  |  |  | component: deviceTree, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/parentPlatformList/:count/:page', | 
|---|
|  |  |  | name: 'parentPlatformList', | 
|---|
|  |  |  | component: parentPlatformList, | 
|---|
|  |  |  | path: '/play/wasm/:url', | 
|---|
|  |  |  | name: 'wasmPlayer', | 
|---|
|  |  |  | component: wasmPlayer, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/devicePosition/:deviceId/:parentChannelId/:count/:page', | 
|---|
|  |  |  | name: 'devicePosition', | 
|---|
|  |  |  | component: devicePosition, | 
|---|
|  |  |  | path: '/play/rtc/:url', | 
|---|
|  |  |  | name: 'rtcPlayer', | 
|---|
|  |  |  | component: rtcPlayer, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | }) | 
|---|