Browse Source

修改上传问题

zengyicheng 2 years ago
parent
commit
9a0841f409

+ 1 - 1
src/components/liveProjectDetail(湖心亭看雪).vue

@@ -1061,7 +1061,7 @@ export default {
             file.name.split(".")[0] +
             new Date().getTime() +
             "." +
-            file.name.split(".")[1],
+            file.name.split(".")[file.name.split(".").length-1],
           ContentType: file.type,
           Body: file,
           "Access-Control-Allow-Credentials": "*",

+ 1 - 1
src/components/liveProjectDetail.vue

@@ -589,7 +589,7 @@ export default {
             file.name.split(".")[0] +
             new Date().getTime() +
             "." +
-            file.name.split(".")[1],
+            file.name.split(".")[file.name.split(".").length-1],
           ContentType: file.type,
           Body: file,
           "Access-Control-Allow-Credentials": "*",

+ 1 - 1
src/components/study.vue

@@ -2501,7 +2501,7 @@ export default {
             file.name.split(".")[0] +
             new Date().getTime() +
             "." +
-            file.name.split(".")[1],
+            file.name.split(".")[file.name.split(".").length-1],
           ContentType: file.type,
           Body: file,
           "Access-Control-Allow-Credentials": "*",

+ 1 - 1
src/components/tools/wangEnduit.vue

@@ -115,7 +115,7 @@ export default {
                 file.name.split(".")[0] +
                 new Date().getTime() +
                 "." +
-                file.name.split(".")[1],
+                file.name.split(".")[file.name.split(".").length-1],
               ContentType: file.type,
               Body: file,
               "Access-Control-Allow-Credentials": "*",