11
WXL
2024-03-25 9f468e0447a71eb7fcc4f1d78df3be9d348f6fe0
src/views/login.vue
@@ -182,10 +182,20 @@
          }
          this.$store
            .dispatch("Login", this.loginForm)
            .then(() => {
              this.$router.push({ path: this.redirect || "/" }).catch(() => {});
            .then(res => {
              console.log(this.$store.state.user.code, "44");
              console.log(this.$store.state.user.msg, "22");
              if (this.$store.state.user.code == 200) {
                this.$router
                  .push({ path: this.redirect || "/" })
                  .catch(() => {});
              } else {
              this.loading = false;
                this.$message.error(this.$store.state.user.msg);
              }
            })
            .catch(() => {
            .catch(err => {
              console.log(err);
              this.loading = false;
              // this.$message.error("登陆失败请重试。");
              if (this.captchaOnOff) {