@@ -21,7 +21,8 @@ async function fetchCatalog() {
if (!course.value?.videoPath) {
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 () => {
await fetchCatalog()