Bladeren bron

[FIX] 表单提交异常

Kunduin 7 jaren geleden
bovenliggende
commit
ef99dce9fe

+ 1 - 0
src/views/login/Login.vue

@@ -83,6 +83,7 @@ export default {
   },
   methods: {
     async loginAction() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.$invalid) {
         const { username = "", password = "" } = this;

+ 1 - 0
src/views/login/Register.vue

@@ -133,6 +133,7 @@ export default {
   },
   methods: {
     async registerAction() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.$invalid) {
         this.submitting = true;

+ 1 - 0
src/views/setting/Password.vue

@@ -94,6 +94,7 @@ export default {
   },
   methods: {
     async registerAction() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.$invalid) {
         this.submitting = true;

+ 1 - 0
src/views/setting/Profile.vue

@@ -55,6 +55,7 @@ export default {
   },
   methods: {
     async updateProfileAction() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.$invalid) {
         this.submitting = true;

+ 2 - 0
src/views/student/Group/index.vue

@@ -183,6 +183,7 @@ export default {
   },
   methods: {
     async createGroup() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.name.$invalid) {
         try {
@@ -207,6 +208,7 @@ export default {
       }
     },
     async joinGroup() {
+      this.isServerError = false;
       this.$v.$touch();
       if (!this.$v.code.$invalid) {
         try {