Skip to content

Commit f954afd

Browse files
committed
fix: videoplayer should jump out at not exist file
1 parent 41ce2a4 commit f954afd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/recorder/VideoPlayer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ onMounted(() => {
100100
}
101101
flvfile.value = e.files.find((f) => f.name === filename && !f.isFolder) as FileDto;
102102
const xmlFile = e.files.find((f) => f.name === xmlFileName && !f.isFolder) as FileDto;
103-
if (!flvfile) {
103+
if (!flvfile.value) {
104104
return router.push({ path: `/recorder/${route.params.id}/files`, hash: '#/' });
105105
}
106106
playerOptions.value = {

0 commit comments

Comments
 (0)