mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
视频选择修改
This commit is contained in:
@@ -190,8 +190,6 @@ export default {
|
|||||||
if(this.loading) {
|
if(this.loading) {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
}
|
}
|
||||||
this.$emit('isTrue',true)
|
|
||||||
this.$emit('isFalse',true)
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
// 文件个数超出
|
// 文件个数超出
|
||||||
@@ -224,12 +222,15 @@ export default {
|
|||||||
if(delIdx>-1){
|
if(delIdx>-1){
|
||||||
fileList.splice(delIdx,1);
|
fileList.splice(delIdx,1);
|
||||||
}
|
}
|
||||||
|
this.$emit('isTrue',true)
|
||||||
|
this.$emit('isFalse',true)
|
||||||
} else {
|
} else {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
//this.fileList = [];
|
if(this.limit == 1){
|
||||||
|
this.fileList = [];
|
||||||
|
}
|
||||||
this.$message({message:"上传失败",type:'error',offset:100});
|
this.$message({message:"上传失败",type:'error',offset:100});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit("success", res);
|
this.$emit("success", res);
|
||||||
},
|
},
|
||||||
// 删除文件
|
// 删除文件
|
||||||
|
|||||||
Reference in New Issue
Block a user