fix:作业限制视频文件格式上传

This commit is contained in:
wyx
2023-03-08 20:30:46 +08:00
parent 30ff5ea1b2
commit d5d6bd961f

View File

@@ -51,6 +51,12 @@ function handleChange(file) {
f.uid = file.uid;
file.raw = f;
console.log(file.raw)
if(file.raw.name.includes('.mp4') || file.raw.name.includes('.jpeg')){
files.value = []
emit('update:value', files.value)
ElMessage.error(`暂不支持此格式文件上传`);
return
}else{
imageRef.value.submit();
if (file.response && file.response.code === 200) {
@@ -64,6 +70,7 @@ function handleChange(file) {
}
emit('update:value', files.value)
}
}
function remove(i) {