This commit is contained in:
parent
4869979cdd
commit
3a8ca51ef0
|
@ -418,16 +418,17 @@ export default {
|
|||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
].includes(file.type);
|
||||
const isRightSize = file.size / 1024 / 1024 < 2;
|
||||
// const isRightSize = file.size / 1024 / 1024 < 2;
|
||||
|
||||
if (!isRightType) {
|
||||
this.$message.error("只允许上传 PDF、DOCX、XLSX 格式的文件");
|
||||
}
|
||||
if (!isRightSize) {
|
||||
this.$message.error("文件大小超过 2MB");
|
||||
}
|
||||
// if (!isRightSize) {
|
||||
// this.$message.error("文件大小超过 2MB");
|
||||
// }
|
||||
|
||||
return isRightType && isRightSize;
|
||||
// return isRightType && isRightSize;
|
||||
return isRightType;
|
||||
},
|
||||
openLink(link) {
|
||||
window.open(link);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
.pagination-container[data-v-6af373ef]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-6af373ef]{display:none}.link-type[data-v-b91865a6]{color:#07b5f9;cursor:pointer}
|
||||
.pagination-container[data-v-6af373ef]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-6af373ef]{display:none}.link-type[data-v-26d883ac]{color:#07b5f9;cursor:pointer}
|
File diff suppressed because one or more lines are too long
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