SanHQin 1 hete
szülő
commit
24d9fcce58
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/components/pages/easy/addCourse.vue

+ 4 - 4
src/components/pages/easy/addCourse.vue

@@ -790,7 +790,7 @@
                             class="c_pub_button_add pub_btn_add_img"
                                 @click="uploadZIPFile(0)"
                           >
-                            ZIP文件上传
+                            代码上传
                           </button> -->
                         </div>
                         <div
@@ -14136,7 +14136,7 @@ export default {
           const content = await zip.loadAsync(file);
           let _fileStructure = this.buildFileStructure(file,content);
           let _time = new Date().getTime();
-          let _resultList = await this.uploadZipFile(_fileStructure.files,`${_time}_${_fileStructure.folderName}`);
+          let _resultList = await this.uploadZipFileFn(_fileStructure.files,`${_time}_${_fileStructure.folderName}`);
           console.log("_resultList",_resultList)
 
         }catch(e){
@@ -14194,7 +14194,7 @@ export default {
       return root;
     },
     //按路径上传文件
-    async uploadZipFile(fileList,path){
+    async uploadZipFileFn(fileList,path){
       return new Promise(async (resolve)=>{
         let _copyFileList = fileList;
 
@@ -14202,7 +14202,7 @@ export default {
         for(let i = 0; i < _copyFileList.length; i++){
           if(_copyFileList[i].folderName){
             let _path = `${path}/${_copyFileList[i].folderName}`;
-            promise.push(this.uploadZipFile(_copyFileList[i].files,_path).then(res=>{
+            promise.push(this.uploadZipFileFn(_copyFileList[i].files,_path).then(res=>{
               _copyFileList[i].files = res;
             }))
           }else if(_copyFileList[i].fileName){