Selaa lähdekoodia

上传组件 条件判断bug修复

DESKTOP-2S67K1S\31396 2 vuotta sitten
vanhempi
commit
fb82a59a2a
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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]