提交 ecc03fab 编写于 作者: bo.dang's avatar bo.dang

Merge branch 'dev-livemanage-20200702' into 'release'

取消上传优化,Code Review: bo.dang



See merge request !183
...@@ -192,6 +192,7 @@ ...@@ -192,6 +192,7 @@
<el-upload style="float:right;" <el-upload style="float:right;"
action="#" action="#"
accept="*/*" accept="*/*"
ref="upload"
:limit="1" :limit="1"
:show-file-list="false" :show-file-list="false"
:before-upload="beforeUploadVideo"> :before-upload="beforeUploadVideo">
...@@ -748,6 +749,8 @@ export default { ...@@ -748,6 +749,8 @@ export default {
delVideo(){ delVideo(){
if(vm.uploadProgress1 > 0 && vm.uploadProgress1 < 100){ if(vm.uploadProgress1 > 0 && vm.uploadProgress1 < 100){
openLoading(this); openLoading(this);
this.$refs.upload.abort();
this.$refs.upload.clearFiles();
unsubscribe(); unsubscribe();
if(vm.videoSize > 500){ if(vm.videoSize > 500){
setTimeout(() => { setTimeout(() => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册