| | |
| | | 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' |
| | |
| | | import parentPlatformList from '../components/ParentPlatformList.vue' |
| | | import cloudRecord from '../components/CloudRecord.vue' |
| | | import mediaServerManger from '../components/MediaServerManger.vue' |
| | | import test from '../components/test.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 wasmPlayer from '../components/dialog/jessibuca.vue' |
| | | import wasmPlayer from '../components/common/jessibuca.vue' |
| | | import rtcPlayer from '../components/dialog/rtcPlayer.vue' |
| | | |
| | | const originalPush = VueRouter.prototype.push |
| | |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | | name: 'home', |
| | | component: Layout, |
| | | redirect: '/control', |
| | | children: [ |
| | | { |
| | | path: '/control', |
| | | component: control, |
| | | }, |
| | | { |
| | |
| | | { |
| | | path: '/streamProxyList', |
| | | component: streamProxyList, |
| | | }, |
| | | { |
| | | path: '/login', |
| | | name: '登录', |
| | | component: login, |
| | | }, |
| | | { |
| | | path: '/channelList/:deviceId/:parentChannelId/:count/:page', |
| | |
| | | component: media, |
| | | }, |
| | | { |
| | | path: '/map', |
| | | name: 'devicePosition', |
| | | component: devicePosition, |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | path: '/login', |
| | | name: '登录', |
| | | component: login, |
| | | }, |
| | | { |
| | | path: '/test', |
| | | name: 'test', |
| | | component: test, |
| | | name: 'deviceTree', |
| | | component: deviceTree, |
| | | }, |
| | | { |
| | | path: '/play/wasm/:url', |