This commit is contained in:
parent
3d316fee5a
commit
4869979cdd
|
@ -236,16 +236,17 @@ export default {
|
|||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
].includes(file.type);
|
||||
const isRightSize = file.size / 1024 / 1024 < 500;
|
||||
// const isRightSize = file.size / 1024 / 1024 < 500;
|
||||
|
||||
if (!isRightType) {
|
||||
this.$message.error("只允许上传 PDF、DOCX、XLSX 格式的文件");
|
||||
}
|
||||
if (!isRightSize) {
|
||||
this.$message.error("文件大小超过 500MB");
|
||||
}
|
||||
// if (!isRightSize) {
|
||||
// this.$message.error("文件大小超过 500MB");
|
||||
// }
|
||||
|
||||
return isRightType && isRightSize;
|
||||
// return isRightType && isRightSize;
|
||||
return isRightType;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
.contract[data-v-742774f5]{padding-top:20px}.contract .lay[data-v-742774f5]{width:100%}.contract .lay .flex[data-v-742774f5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:20px;margin-bottom:20px}.contract .lay .word[data-v-742774f5]{margin:0 50px}
|
|
@ -0,0 +1 @@
|
|||
.contract[data-v-4eca529c]{padding-top:20px}.contract .lay[data-v-4eca529c]{width:100%}.contract .lay .flex[data-v-4eca529c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:20px;margin-bottom:20px}.contract .lay .word[data-v-4eca529c]{margin:0 50px}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue