提交 5c092036 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 413bf641
...@@ -21,11 +21,16 @@ watchEffect(() => { ...@@ -21,11 +21,16 @@ watchEffect(() => {
const isEmpty = $computed(() => { const isEmpty = $computed(() => {
return !props.competition_id || !detail?.id return !props.competition_id || !detail?.id
}) })
const file = $computed(() => {
if (!detail) return {}
return JSON.parse(detail.url)
})
</script> </script>
<template> <template>
<el-empty description="暂无数据" v-if="isEmpty" /> <el-empty description="暂无数据" v-if="isEmpty" />
<template v-else> <template v-else>
<Preview :url="detail.url"></Preview> <Preview :url="file.url"></Preview>
</template> </template>
</template> </template>
...@@ -14,7 +14,7 @@ const props = defineProps<Props>() ...@@ -14,7 +14,7 @@ const props = defineProps<Props>()
let playList = $ref<PlayInfo[]>([]) let playList = $ref<PlayInfo[]>([])
function fetchInfo() { function fetchInfo() {
getExperimentVideoPlayInfo({ source_id: props.data.source_id }).then(res => { getExperimentVideoPlayInfo({ source_id: props.data.source_id }).then(res => {
playList = res.data.play_info_list playList = res.data.list.play_info_list
// 日志上送 // 日志上送
// log.upload({ // log.upload({
// event: 'video_event', // event: 'video_event',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论