From d24c9dde20cba23b96082b4db81b5223c75e4ea9 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期三, 08 三月 2023 09:06:28 +0800 Subject: [PATCH] 身份证正反面调整 --- src/components/Upload/index.vue | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index 656aa7d..3bbeb74 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -23,18 +23,16 @@ }, methods: { beforeUpload(rawFile) { - console.log(rawFile); if (rawFile.type !== 'image/png' && rawFile.type !== 'image/svg+xml' && rawFile.type !== 'image/jpg' && rawFile.type !== 'image/jpeg') { this.$message.error('鍥剧墖蹇呴』鏄� jpg/svg/jpeg/png 鏍煎紡!') return false - } else if (rawFile.size / 105 / 105 > 2) { - this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 2MB!') + } else if (rawFile.size / 1024 / 1024 > 5) { + this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 5MB!') return false } return true }, handleSuccess(res, file, filelist) { - console.log(res); this.$emit('getPicUrl', { obj: res.data, value: this.mykey }); }, getToken() { -- Gitblit v1.8.0