소스 검색

上传组件 条件判断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]