zhuf 4 mēneši atpakaļ
vecāks
revīzija
2c4eb78cc7
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/components/FileUploadProgress/index.vue

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

@@ -93,8 +93,7 @@ function handleSuccess() {
     let full = [];
     FILE_LIST.value.forEach(item => {
       console.log('item : ', item)
-      if (item.percentage === 100) {
-        console.log('percentage === 100 : ')
+      if (item?.response?.code === '1') {
         const { url: part_url, file_name } = item.response.data
         part.push(part_url);
         full.push(`${part_url}|${file_name}`);