修改上传文件的双语
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
name="file"
|
name="file"
|
||||||
:file-list="myfileList"
|
:file-list="myfileList"
|
||||||
:multiple="true"
|
:multiple="true"
|
||||||
:action="uploadAction+'?state='+state"
|
:action="uploadAction+'?state='+state+'&cut='+cut"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@preview="preview"
|
@preview="preview"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
@@ -45,7 +45,8 @@
|
|||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
fileList: [],
|
fileList: [],
|
||||||
myfileList: [],
|
myfileList: [],
|
||||||
isLoding: false
|
isLoding: false,
|
||||||
|
cut: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -54,6 +55,13 @@
|
|||||||
this.containerId = 'container-ty-' + new Date().getTime()
|
this.containerId = 'container-ty-' + new Date().getTime()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let long = localStorage.getItem('language')
|
||||||
|
this.cut = ''
|
||||||
|
if (long && long == 'zh-cn') {
|
||||||
|
this.cut = 'cn'
|
||||||
|
} else if (long && long == 'en-us') {
|
||||||
|
this.cut = 'en'
|
||||||
|
}
|
||||||
// console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl);
|
// console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user