|
|
@@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [
|
|
|
meta: { title: '视频播放', hidden: true }
|
|
|
},
|
|
|
{
|
|
|
- path: 'stream-test',
|
|
|
+ path: 'streamtest',
|
|
|
name: 'StreamTest',
|
|
|
component: () => import('@/views/camera/stream-test.vue'),
|
|
|
meta: { title: 'Stream 测试', icon: 'Monitor' }
|
|
|
@@ -81,13 +81,13 @@ const routes: RouteRecordRaw[] = [
|
|
|
meta: { title: '用户管理', icon: 'User' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'cloudflare-stream',
|
|
|
+ path: 'demo/cc',
|
|
|
name: 'CloudflareStream',
|
|
|
component: () => import('@/views/demo/cloudflare-stream.vue'),
|
|
|
meta: { title: 'Cloudflare Stream', icon: 'VideoCamera' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'webrtc-stream',
|
|
|
+ path: 'demo/webrtc',
|
|
|
name: 'WebrtcStream',
|
|
|
component: () => import('@/views/demo/webrtc-stream.vue'),
|
|
|
meta: { title: 'WebRTC 流', icon: 'Connection' }
|
|
|
@@ -105,19 +105,19 @@ const routes: RouteRecordRaw[] = [
|
|
|
meta: { title: '审计日志', icon: 'Document' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'demo/direct-url',
|
|
|
+ path: 'demo/directurl',
|
|
|
name: 'DirectUrl',
|
|
|
component: () => import('@/views/demo/direct-url.vue'),
|
|
|
meta: { title: '直接 URL', icon: 'Link' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'demo/rtsp-stream',
|
|
|
+ path: 'demo/rtsp',
|
|
|
name: 'RtspStream',
|
|
|
component: () => import('@/views/demo/rtsp-stream.vue'),
|
|
|
meta: { title: 'RTSP 流', icon: 'Connection' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'demo/sample-videos',
|
|
|
+ path: 'demo/samples',
|
|
|
name: 'SampleVideos',
|
|
|
component: () => import('@/views/demo/sample-videos.vue'),
|
|
|
meta: { title: '测试视频', icon: 'Film' }
|
|
|
@@ -136,7 +136,7 @@ const router = createRouter({
|
|
|
})
|
|
|
|
|
|
// 白名单(无需登录即可访问)
|
|
|
-const whiteList = ['/login', '/stream-test']
|
|
|
+const whiteList = ['/login', '/streamtest']
|
|
|
|
|
|
router.beforeEach((to, _from, next) => {
|
|
|
// 开始进度条
|