| | |
| | | } |
| | | 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) { |