Commit c36cbf93 authored by 徐一鸣's avatar 徐一鸣

应用管理列表调试

parent 374eb2e1
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
> >
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text"> <div class="el-upload__text">
将文件拖到此处,或<em>点击上传</em> 镜像文件拖到此处,或<em>点击上传</em>
</div> </div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
> >
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text"> <div class="el-upload__text">
将文件拖到此处,或<em>点击上传</em> 部署文件拖到此处,或<em>点击上传</em>
</div> </div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
...@@ -412,16 +412,16 @@ export default { ...@@ -412,16 +412,16 @@ export default {
this.app_info.logo = response.data; this.app_info.logo = response.data;
}, },
beforeLogoUpload(file) { beforeLogoUpload(file) {
/* const isJPG = file.type === "image/jpeg"; const isPic = file.type === "image/jpeg" || file.type === "image/png";
const isLt2M = file.size / 1024 / 1024 < 2; const isLt10M = file.size / 1024 / 1024 < 10;
if (!isJPG) { if (!isPic) {
this.$message.error("上传头像图片只能是 JPG 格式!"); this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!");
} }
if (!isLt2M) { if (!isLt10M) {
this.$message.error("上传头像图片大小不能超过 2MB!"); this.$message.error("上传头像图片大小不能超过 10MB!");
} }
return isJPG && isLt2M; */ return isPic && isLt10M;
}, },
getYwlys() { getYwlys() {
this.$http this.$http
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment