From d5af6a01f5eddb1ab77c44f4ef41a75cd804f40e Mon Sep 17 00:00:00 2001 From: g7hoo Date: Thu, 29 Sep 2022 10:31:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base-upload/index.vue | 10 +++++----- src/i18n/en.js | 4 ++-- src/i18n/zh-CN.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/base-upload/index.vue b/src/components/base-upload/index.vue index f05663e..d56b22f 100644 --- a/src/components/base-upload/index.vue +++ b/src/components/base-upload/index.vue @@ -58,14 +58,14 @@ export default { this.$watch('uploaderInjectFileList', function(val) { if (val && val.length) { - console.log('this.uploaderInjectFileList', this.uploaderInjectFileList) + // console.log('this.uploaderInjectFileList', this.uploaderInjectFileList) /** uploaderInjectFileList 里关于文件的信息比较全,需要手动过滤一下 */ this.fileList = val.map(item => { const name = item.fileUrl.split('/').pop() return { ...pick(item, ['id', 'fileName', 'typeCode']), name } }) } - console.log('fillist: ', this.fileList) + // console.log('fillist: ', this.fileList) }) // if (this.parentDataForm) { @@ -111,7 +111,7 @@ export default { /** 图片验证,由配置文件开启 */ validateImage(file) { - console.log('[*] 验证图片') + // console.log('[*] 验证图片') const isRightSize = file.size / 1024 / 1024 < 2 if (!isRightSize) { @@ -146,10 +146,10 @@ export default { responseType: 'blob' }).then(({ data: res }) => { const blob = new Blob([res]) - console.log('blob', blob) + // console.log('blob', blob) if ('download' in document.createElement('a')) { const alink = document.createElement('a') - console.log('filename: ', fileName) + // console.log('filename: ', fileName) alink.download = fileName alink.style.display = 'none' alink.target = '_blank' diff --git a/src/i18n/en.js b/src/i18n/en.js index ee39fc3..c90a580 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -174,8 +174,8 @@ t.hints.date = 'Please select date' t.hints.checktime = 'Please select inspection time' t.hints.number = 'Please input correct number' t.hints.addr = 'Please input address' -t.hints.upload2m = 'File size cannot be larger than 2mb (2048kb)' -t.hints.upload2mPic = 'Image files only. File size cannot be larger than 2mb (2048kb)' +t.hints.upload2m = 'File size cannot be larger than 2MB (2048KB)' +t.hints.upload2mPic = 'Image files only. File size cannot be larger than 2MB (2048KB)' t.factory = {} t.factory.title = 'Factory' diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index c38752c..bdd9795 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -175,8 +175,8 @@ t.hints.date = '请选择日期' t.hints.checktime = '请选择检测时间' t.hints.number = '请输入正确的数值' t.hints.addr = '请输入地址' -t.hints.upload2m = '上传文件大小不要超过 2mb (2048kb)' -t.hints.upload2mPic = '上传图片文件,且大小不要超过 2mb (2048kb)' +t.hints.upload2m = '上传文件大小不要超过 2MB (2048KB)' +t.hints.upload2mPic = '上传图片文件,且大小不要超过 2MB (2048KB)' t.factory = {} t.factory.title = '工厂'