1. 对课程视频路径进行decodeURIComponent解码处理
@@ -21,7 +21,7 @@ async function fetchCatalog() {
if (!course.value?.videoPath) {
return
}
- data.value.videoSrc = course.value?.videoPath.includes('http') ? course.value?.videoPath : ('https://oss.xiaoxiongcode.com' + course.value?.videoPath)
+ data.value.videoSrc = course.value?.videoPath.includes('http') ? decodeURIComponent(course.value?.videoPath) : ('https://oss.xiaoxiongcode.com' + decodeURIComponent(course.value?.videoPath))
onMounted(async () => {
await fetchCatalog()