408249787@qq.com преди 1 седмица
родител
ревизия
fe8715075a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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()