mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-08 18:36:48 +08:00
Merge branch 'develop' into manage-release
This commit is contained in:
@@ -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) {
|
||||
@@ -65,6 +71,7 @@ function handleChange(file) {
|
||||
|
||||
emit('update:value', files.value)
|
||||
}
|
||||
}
|
||||
|
||||
function remove(i) {
|
||||
files.value.splice(i, 1)
|
||||
|
||||
Reference in New Issue
Block a user