From 84547acec20fc994df81e92797e38ac9c46130ad Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Mon, 2 Aug 2021 18:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E6=9D=83=E8=B0=83=E6=9F=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/authenticRight/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/authenticRight/index.vue b/src/views/authenticRight/index.vue index c17f50ad..35344a0f 100644 --- a/src/views/authenticRight/index.vue +++ b/src/views/authenticRight/index.vue @@ -113,7 +113,7 @@ :rules="[{ required: true, message: '请填写被核查人姓名' }]" > @@ -638,6 +638,15 @@ }, methods:{ + onOversize(){ + this.$toast({ + icon: 'error', // 找到自己需要的图标 + message: '文件大小超过4MB,上传失败', + duration:"1000", + onClose:function(){ + } + }) + }, afterRead(file) { const data = new FormData(); data.append("file", this.fileList[0].file);