fix: misc issues

This commit is contained in:
Jannat Patel
2024-11-27 15:45:26 +05:30
parent 6c06f7d19b
commit a64b0f734a
5 changed files with 25 additions and 8 deletions

View File

@@ -3,10 +3,11 @@
v-model="show"
:options="{
size: '4xl',
title: title,
}"
>
<template #body>
<div class="p-4">
<template #body-content>
<div>
<VideoBlock :file="file" />
</div>
</template>
@@ -24,8 +25,14 @@ const props = defineProps({
type: [String, null],
required: true,
},
title: {
type: String,
required: true,
},
})
console.log(props.title)
const file = computed(() => {
if (props.type == 'youtube') return '/assets/lms/frontend/Youtube.mp4'
if (props.type == 'quiz') return '/assets/lms/frontend/Quiz.mp4'