2020-10-12 10:11:24 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
|
|
|
|
|
|
|
import control from '../components/control.vue'
|
2021-03-25 17:48:20 +08:00
|
|
|
import deviceList from '../components/DeviceList.vue'
|
2020-10-12 10:11:24 +08:00
|
|
|
import channelList from '../components/channelList.vue'
|
2021-03-26 18:32:36 +08:00
|
|
|
import pushVideoList from '../components/PushVideoList.vue'
|
2021-03-30 18:46:34 +08:00
|
|
|
import streamProxyList from '../components/StreamProxyList.vue'
|
2021-01-27 15:24:28 +08:00
|
|
|
import devicePosition from '../components/devicePosition.vue'
|
2020-10-12 10:11:24 +08:00
|
|
|
import login from '../components/Login.vue'
|
2020-11-20 18:02:01 +08:00
|
|
|
import parentPlatformList from '../components/ParentPlatformList.vue'
|
2021-06-01 17:05:07 +08:00
|
|
|
import cloudRecord from '../components/CloudRecord.vue'
|
2021-04-21 18:14:45 +08:00
|
|
|
import test from '../components/test.vue'
|
2021-04-29 17:14:37 +08:00
|
|
|
import web from '../components/setting/Web.vue'
|
|
|
|
import sip from '../components/setting/Sip.vue'
|
|
|
|
import media from '../components/setting/Media.vue'
|
2020-10-12 10:11:24 +08:00
|
|
|
|
2021-05-06 10:44:16 +08:00
|
|
|
import wasmPlayer from '../components/dialog/easyPlayer.vue'
|
|
|
|
import rtcPlayer from '../components/dialog/rtcPlayer.vue'
|
|
|
|
|
2020-10-12 10:11:24 +08:00
|
|
|
const originalPush = VueRouter.prototype.push
|
|
|
|
VueRouter.prototype.push = function push(location) {
|
|
|
|
return originalPush.call(this, location).catch(err => err)
|
|
|
|
}
|
|
|
|
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
|
|
|
|
|
|
|
export default new VueRouter({
|
|
|
|
mode:'hash',
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: control,
|
|
|
|
},
|
|
|
|
{
|
2021-03-25 17:48:20 +08:00
|
|
|
path: '/deviceList',
|
|
|
|
component: deviceList,
|
2020-10-12 10:11:24 +08:00
|
|
|
},
|
2021-03-26 18:32:36 +08:00
|
|
|
{
|
|
|
|
path: '/pushVideoList',
|
|
|
|
component: pushVideoList,
|
|
|
|
},
|
2021-03-30 18:46:34 +08:00
|
|
|
{
|
|
|
|
path: '/streamProxyList',
|
|
|
|
component: streamProxyList,
|
|
|
|
},
|
2020-10-12 10:11:24 +08:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: '登录',
|
|
|
|
component: login,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/channelList/:deviceId/:parentChannelId/:count/:page',
|
|
|
|
name: 'channelList',
|
|
|
|
component: channelList,
|
2021-01-09 14:58:08 +08:00
|
|
|
},
|
2020-11-20 18:02:01 +08:00
|
|
|
{
|
2020-11-23 18:17:20 +08:00
|
|
|
path: '/parentPlatformList/:count/:page',
|
2020-11-20 18:02:01 +08:00
|
|
|
name: 'parentPlatformList',
|
|
|
|
component: parentPlatformList,
|
2020-10-12 10:11:24 +08:00
|
|
|
},
|
2021-01-27 15:24:28 +08:00
|
|
|
{
|
|
|
|
path: '/devicePosition/:deviceId/:parentChannelId/:count/:page',
|
|
|
|
name: 'devicePosition',
|
|
|
|
component: devicePosition,
|
2021-04-29 17:14:37 +08:00
|
|
|
},
|
2021-06-01 17:05:07 +08:00
|
|
|
{
|
|
|
|
path: '/cloudRecord',
|
|
|
|
name: 'cloudRecord',
|
|
|
|
component: cloudRecord,
|
|
|
|
},
|
2021-04-29 17:14:37 +08:00
|
|
|
{
|
|
|
|
path: '/setting/web',
|
|
|
|
name: 'web',
|
|
|
|
component: web,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/setting/sip',
|
|
|
|
name: 'sip',
|
|
|
|
component: sip,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/setting/media',
|
|
|
|
name: 'media',
|
|
|
|
component: media,
|
|
|
|
},
|
2021-04-21 18:14:45 +08:00
|
|
|
{
|
|
|
|
path: '/test',
|
|
|
|
name: 'test',
|
|
|
|
component: test,
|
2021-01-27 15:24:28 +08:00
|
|
|
},
|
2021-05-06 10:54:41 +08:00
|
|
|
{
|
|
|
|
path: '/play/wasm/:url',
|
|
|
|
name: 'wasmPlayer',
|
|
|
|
component: wasmPlayer,
|
|
|
|
},
|
2021-05-06 10:44:16 +08:00
|
|
|
{
|
|
|
|
path: '/play/rtc/:url',
|
|
|
|
name: 'rtcPlayer',
|
|
|
|
component: rtcPlayer,
|
|
|
|
},
|
2020-10-12 10:11:24 +08:00
|
|
|
]
|
|
|
|
})
|