Explorar el Código

上传组件 条件判断bug修复

DESKTOP-2S67K1S\31396 hace 2 años
padre
commit
fb82a59a2a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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]