408249787@qq.com 1 viikko sitten
vanhempi
commit
fe8715075a
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      pages/english/detail.uvue

+ 2 - 1
pages/english/detail.uvue

@@ -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()