File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
uview-ui/components/u-upload Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 21
21
<u-icon class =" u-icon" :name =" delIcon" size =" 20" :color =" delColor" ></u-icon >
22
22
</view >
23
23
<u-line-progress
24
- v-if =" showProgress && item.progress > 0 && !item.error"
24
+ v-if =" showProgress && item.progress > 0 && item.progress !=100 && !item.error"
25
25
:show-percent =" false"
26
26
height =" 16"
27
27
class =" u-progress"
@@ -498,7 +498,7 @@ export default {
498
498
// 执行移除图片的动作,上方代码只是判断是否可以移除
499
499
handlerDeleteItem (index ) {
500
500
// 如果文件正在上传中,终止上传任务,进度在0 < progress < 100则意味着正在上传
501
- if (this .lists [index].process < 100 && this .lists [index].process > 0 ) {
501
+ if (this .lists [index].progress < 100 && this .lists [index].progress > 0 ) {
502
502
typeof this .lists [index].uploadTask != ' undefined' && this .lists [index].uploadTask .abort ();
503
503
}
504
504
this .lists .splice (index, 1 );
You can’t perform that action at this time.
0 commit comments