From eda46bf83619297600436e5015fd8977e9974219 Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期五, 04 十一月 2022 15:50:31 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui --- src/components/Upload/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index aa2ddd2..ec73e95 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -1,5 +1,5 @@ <template> - <el-upload :file-list="fileList" class="upload-demo" action="http://42.193.1.25:8082/sccg/file/medias" multiple + <el-upload :file-list="fileList" class="upload-demo" action="/sccg/file/medias" multiple :show-file-list="flag" :before-upload="beforeUpload" :limit="50" :on-success="handleSuccess" :headers="getToken()"> <div class="uploadBtn" v-if="picUrl===''"> @@ -25,10 +25,10 @@ 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('Avatar picture must be jpg/svg/jpeg/png format!') + this.$message.error('鍥剧墖蹇呴』鏄� jpg/svg/jpeg/png 鏍煎紡!') return false - } else if (rawFile.size / 105 / 105 > 2) { - this.$message.error('Avatar picture size can not exceed 2MB!') + } else if (rawFile.size / 1024 / 1024 > 5) { + this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 5MB!') return false } return true -- Gitblit v1.8.0