lex il y a 1 an
Parent
commit
9691b4273a

+ 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) {