Commit 4cde23c9 authored by linhuandong's avatar linhuandong

修复后缀重复问题

parent 66f76808
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.2":"2.13","2.14.1":"2.14","2.15.7678":"2.15"} {"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.2":"2.13","2.14.1":"2.14","2.15.7679":"2.15"}
\ No newline at end of file \ No newline at end of file
{ {
"name": "element-ui", "name": "element-ui",
"version": "2.15.7678", "version": "2.15.7679",
"description": "A Component Library for Vue.js.", "description": "A Component Library for Vue.js.",
"main": "lib/element-ui.common.js", "main": "lib/element-ui.common.js",
"files": [ "files": [
......
...@@ -86,7 +86,10 @@ export default { ...@@ -86,7 +86,10 @@ export default {
if (!this.beforeUpload) { if (!this.beforeUpload) {
let file = this.fileList.find(o => o.uid === rawFile.uid); let file = this.fileList.find(o => o.uid === rawFile.uid);
let filename = file.name + rawFile.name.substring(rawFile.name.lastIndexOf('.')); let filename = file.name;
if (filename.indexOf('.') === -1) {
filename = rawFile.name.substring(rawFile.name.lastIndexOf('.'));
}
return this.post(rawFile, filename); return this.post(rawFile, filename);
} }
......
...@@ -210,7 +210,7 @@ if (typeof window !== 'undefined' && window.Vue) { ...@@ -210,7 +210,7 @@ if (typeof window !== 'undefined' && window.Vue) {
} }
export default { export default {
version: '2.15.7678', version: '2.15.7679',
locale: locale.use, locale: locale.use,
i18n: locale.i18n, i18n: locale.i18n,
install, install,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment