dedsudiyu 2 년 전
부모
커밋
93cfbe7c4b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/views/mine/index.vue

+ 6 - 0
src/views/mine/index.vue

@@ -470,6 +470,12 @@
       //页面按钮点击
       buttonTypeClick(type){
         if(this.buttonType != type){
+          if(this.$refs.userform){
+            this.$refs.userform.clearValidate()
+          }
+          if(this.$refs.form){
+            this.$refs.form.clearValidate()
+          }
           this.buttonType = type;
         }
       },