From b20df4995e953348011c777bdb86f81cfeacc46a Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 12 Apr 2022 18:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=8F=8C=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/uploadFile/file.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jero-web/src/components/uploadFile/file.vue b/jero-web/src/components/uploadFile/file.vue index 200251758..cf346c6fd 100644 --- a/jero-web/src/components/uploadFile/file.vue +++ b/jero-web/src/components/uploadFile/file.vue @@ -9,7 +9,7 @@ name="file" :file-list="myfileList" :multiple="true" - :action="uploadAction+'?state='+state" + :action="uploadAction+'?state='+state+'&cut='+cut" :headers="headers" @preview="preview" :before-upload="beforeUpload" @@ -45,7 +45,8 @@ downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download', fileList: [], myfileList: [], - isLoding: false + isLoding: false, + cut: '' } }, created() { @@ -54,6 +55,13 @@ this.containerId = 'container-ty-' + new Date().getTime() }, 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); }, methods: {