浏览代码

上传组件 条件判断bug修复

DESKTOP-2S67K1S\31396 2 年之前
父节点
当前提交
fb82a59a2a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/components/Upload/index.vue

+ 3 - 0
src/components/Upload/index.vue

@@ -107,6 +107,9 @@ export default {
   watch: {
     url(val) {
       this.form.file = val
+      if(!val) {
+        this.percentage = 0
+      }
     },
     listType(val) {
       this.action = this.obj[val]