lex преди 1 година
родител
ревизия
9691b4273a
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/resetTeaming/components/training-photos/upload/index.vue

+ 4 - 2
src/views/resetTeaming/components/training-photos/upload/index.vue

@@ -164,13 +164,15 @@ export default {
         if (url) {
           this.uploaded.push({
             url,
-            name: file.name.split(".").shift(),
+            name: info.file.name.split(".").shift(),
             clientShow: "YES"
           });
         } else {
           this.$message.error("上传失败");
         }
-      } catch {}
+      } catch (err) {
+        console.log(err);
+      }
       this.uploading = false;
     },
     handleRemove(file, fileList) {