|
@@ -21,7 +21,8 @@ async function fetchCatalog() {
|
|
|
if (!course.value?.videoPath) {
|
|
if (!course.value?.videoPath) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- data.value.videoSrc = course.value?.videoPath.includes('http') ? decodeURIComponent(course.value?.videoPath) : ('https://oss.xiaoxiongcode.com' + decodeURIComponent(course.value?.videoPath))
|
|
|
|
|
|
|
+
|
|
|
|
|
+ data.value.videoSrc = course.value?.videoPath.includes('http') ? encodeURI(course.value?.videoPath) : ('https://oss.xiaoxiongcode.com' + encodeURI(course.value?.videoPath))
|
|
|
}
|
|
}
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
await fetchCatalog()
|
|
await fetchCatalog()
|