From 7c20fd15b7fbc2bd5756b39d5ab655cc849ffcc3 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 16 七月 2025 22:39:23 +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