dedsudiyu лет назад: 2
Родитель
Сommit
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;
         }
       },