Quellcode durchsuchen

fix: 修正PPT文件检查中文件扩展名错误

lsc vor 5 Monaten
Ursprung
Commit
bf77e0eb57
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/views/Student/index.vue

@@ -2560,7 +2560,7 @@ const checkPPTFile = async (jsonObj: any) => {
     pptJsonFileid.value = data1[0].fileid
   }
   else {
-    const pptJsonFile = new File([jsonObj], courseDetail.value.title + '.text', { type: 'text/plain' })
+    const pptJsonFile = new File([jsonObj], courseDetail.value.title + '.txt', { type: 'text/plain' })
     uploadFile2(pptJsonFile, props.courseid as string)
   }
 }