From aa5883a04fbaba7ea7cf87d664cfaa1bd4fe3da5 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Thu, 8 Jul 2021 11:40:18 +0800 Subject: [PATCH] ziti --- client/src/router/index.js | 6 +++--- client/src/views/testvideo/index.vue | 6 ++++++ client/src/views/testvideo/upload.vue | 4 +++- client/src/views/testvideo/videolist.vue | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/client/src/router/index.js b/client/src/router/index.js index f49b12e..7e55a4d 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -214,19 +214,19 @@ export const asyncRoutes = [ path: 'videolist', name: 'videolist', component: () => import('@/views/testvideo/videolist.vue'), - meta: { title: '视频列表', perms: ['videolist'] } + meta: { title: '视频列表', perms: ['video_view'] } }, { path: 'upload', name: 'upload', component: () => import('@/views/testvideo/upload.vue'), - meta: { title: '上传视频', perms: ['uploadvideo'] } + meta: { title: '上传视频', perms: ['video_create'] } }, { path: 'index/:id', name: 'Index', component: () => import('@/views/testvideo/index.vue'), - meta: { title: '视频播放', perms: ['uploadvideo'] }, + meta: { title: '视频播放', perms: ['video_view'] }, hidden: true }, ] diff --git a/client/src/views/testvideo/index.vue b/client/src/views/testvideo/index.vue index 6a8d0f8..2222dd7 100644 --- a/client/src/views/testvideo/index.vue +++ b/client/src/views/testvideo/index.vue @@ -123,6 +123,12 @@ export default { const playerParm = { fileID: this.fileid, appID: '1253484223', + plugins:{ + ContinuePlay: { // 开启续播功能 + // auto: true, //[可选] 是否在视频播放后自动续播 + // text:'上次播放至 ', //[可选] 提示文案 + // btnText: '恢复播放' //[可选] 按钮文案 + },} }; setTimeout(() => { diff --git a/client/src/views/testvideo/upload.vue b/client/src/views/testvideo/upload.vue index 907b93c..08f34dc 100644 --- a/client/src/views/testvideo/upload.vue +++ b/client/src/views/testvideo/upload.vue @@ -50,12 +50,14 @@