dedsudiyu 2 vuotta sitten
vanhempi
commit
93cfbe7c4b
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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;
         }
       },