zhuf 4 hónapja%!(EXTRA string=óta)
szülő
commit
fc86d58b6e

+ 2 - 3
src/components/FileUpload/index.vue

@@ -2,7 +2,7 @@
 import { ElMessage } from 'element-plus';
 import { ref, useAttrs, watch } from 'vue';
 import { REQUEST } from '~/utils/request';
-
+console.log('file upload');
 const emit = defineEmits(['update:part', 'update:full', 'update:size', 'update:time', 'compile'])
 
 const props = defineProps({
@@ -148,7 +148,7 @@ watch(() => List_part.value, () => {
   emit('update:full', List_full.value)
   emit('update:size', renderSize(List_size.value))
   emit('update:time', List_time.value)
-  emit('compile')
+  emit('compile', FILE_LIST.value)
 })
 </script>
 
@@ -176,4 +176,3 @@ watch(() => List_part.value, () => {
     <img w-full :src="dialogImageUrl" alt="Preview Image" />
   </el-dialog>
 </template>
-

+ 1 - 0
src/components/FileUploadProgress/index.vue

@@ -6,6 +6,7 @@ import { getFullUrl, getPartUrl } from '~/utils/helper';
 import user from '~/store/user';
 const token = user.token
 const action = window.GLOBAL_CONFIG.api + '/upload/main/file'
+console.log('file upload progress');
 
 const data = { token, client: 'web', api: 'json', issubmit: '1', site: 'tyyx' }
 const emit = defineEmits(['update:part', 'update:full', 'update:size', 'update:time', 'compile', 'update:list'])

+ 1 - 1
src/pages/personal/components/MyCourse/ssys-create.vue

@@ -623,7 +623,7 @@ export default {
     },
     handleCompile(fileList) {
       let data = fileList[fileList.length - 1];
-      this.formline.ks_img = data.response.data.url;
+      this.formline.ks_img = data.part_url;
       this.cropImg = data.url;
     },
     // 封面图