提交 8a7b997a 编写于 作者: zhentian.jia's avatar zhentian.jia

fix bug 查询机构 人员

上级 8f73e1be
...@@ -1072,6 +1072,12 @@ export default { ...@@ -1072,6 +1072,12 @@ export default {
beforeUploadMp4(file) { beforeUploadMp4(file) {
console.log(file); console.log(file);
const isMP4 = file.type === "video/mp4"; const isMP4 = file.type === "video/mp4";
const isLt = file.size / 1024 / 1024 < 500;
if (!isLt) {
this.$message.error(
"上传视频大小不能超过500M !"
);
}
if (!isMP4) { if (!isMP4) {
this.$message.error("请上传MP4格式文件!"); this.$message.error("请上传MP4格式文件!");
} else { } else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册