From a30ff222ec73ad0898e92d1c569f72863445d413 Mon Sep 17 00:00:00 2001 From: xiaoQQya <xiaoQQya@126.com> Date: 星期二, 07 十一月 2023 09:37:40 +0800 Subject: [PATCH] fix(player): 修复分屏页面视频无法自动播放的问题 --- web_src/src/components/CloudRecordDetail.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/CloudRecordDetail.vue b/web_src/src/components/CloudRecordDetail.vue index 1e15990..4dbd06e 100755 --- a/web_src/src/components/CloudRecordDetail.vue +++ b/web_src/src/components/CloudRecordDetail.vue @@ -39,11 +39,11 @@ <li v-for="(item,index) in detailFiles" :key="index" class="infinite-list-item record-list-item" > <el-tag v-if="choosedFile !== item.filename" @click="chooseFile(item)"> <i class="el-icon-video-camera" ></i> - {{ item.fileName.substring(0, 17) }} + {{ getFileShowName(item.fileName) }} </el-tag> <el-tag type="danger" v-if="choosedFile === item.filename"> <i class="el-icon-video-camera" ></i> - {{ item.fileName.substring(0, 17) }} + {{ getFileShowName(item.fileName) }} </el-tag> <a class="el-icon-download" style="color: #409EFF;font-weight: 600;margin-left: 10px;" :href="`${getFileBasePath(item)}/download.html?url=download/${app}/${stream}/${chooseDate}/${item.fileName}`" @@ -327,6 +327,10 @@ backToList() { this.$router.back() }, + getFileShowName(name) { + return name.substring(0, 2) + ":" + name.substring(2, 4) + ":" + name.substring(4, 6) + "-" + + name.substring(7, 9) + ":" + name.substring(9, 11) + ":" + name.substring(11, 13) + }, chooseMediaChange() { }, -- Gitblit v1.8.0