Browse Source

上传组件 条件判断bug修复

DESKTOP-2S67K1S\31396 2 years ago
parent
commit
fb82a59a2a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/Upload/index.vue

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

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