Prechádzať zdrojové kódy

fix:修复eos图片无法显示的问题

lllgodenough 11 mesiacov pred
rodič
commit
fef1836f17

+ 4 - 0
src/utils/convertUtil.ts

@@ -54,6 +54,10 @@ export function convertImageUrl(url: string, altText: string): string {
     return canvas.toDataURL("image/png");
     return canvas.toDataURL("image/png");
   }
   }
 
 
+  if(url.startsWith('https://eai-files.eos')){
+    return url;
+  }
+
   const index = url.indexOf("?");
   const index = url.indexOf("?");
   // 截取?之前的字符串
   // 截取?之前的字符串
   if (index !== -1) {
   if (index !== -1) {

+ 0 - 1
src/views/CourseSquare/component/CourseDetails/index.vue

@@ -344,7 +344,6 @@ const getCourse = () => {
       .then((res: any) => {
       .then((res: any) => {
         let data = res.data.data.records[0]
         let data = res.data.data.records[0]
         Object.assign(dataForm, {...data})
         Object.assign(dataForm, {...data})
-        processCourses()
         getNewCourseInfo(dataForm)
         getNewCourseInfo(dataForm)
       })
       })
       .catch((err: any) => {
       .catch((err: any) => {