Unverified Commit 739cb489 authored by test's avatar test Committed by GitHub

修改upload组件单词拼写错误导致终止上传失效,及进度条100后隐藏

修改upload组件单词拼写错误导致终止上传失效,及进度条100后隐藏
parents 2dc0717e 970c28da
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<u-icon class="u-icon" :name="delIcon" size="20" :color="delColor"></u-icon> <u-icon class="u-icon" :name="delIcon" size="20" :color="delColor"></u-icon>
</view> </view>
<u-line-progress <u-line-progress
v-if="showProgress && item.progress > 0 && !item.error" v-if="showProgress && item.progress > 0 && item.progress != 100 && !item.error"
:show-percent="false" :show-percent="false"
height="16" height="16"
class="u-progress" class="u-progress"
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
// 执行移除图片的动作,上方代码只是判断是否可以移除 // 执行移除图片的动作,上方代码只是判断是否可以移除
handlerDeleteItem(index) { handlerDeleteItem(index) {
// 如果文件正在上传中,终止上传任务,进度在0 < progress < 100则意味着正在上传 // 如果文件正在上传中,终止上传任务,进度在0 < progress < 100则意味着正在上传
if (this.lists[index].process < 100 && this.lists[index].process > 0) { if (this.lists[index].progress < 100 && this.lists[index].progress > 0) {
typeof this.lists[index].uploadTask != 'undefined' && this.lists[index].uploadTask.abort(); typeof this.lists[index].uploadTask != 'undefined' && this.lists[index].uploadTask.abort();
} }
this.lists.splice(index, 1); this.lists.splice(index, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment