登录密码加密

lijinlong
吕天方 5 months ago
parent cbf7b95050
commit bafa5f71bc

@ -217,7 +217,7 @@ export default {
Cookies.remove("rememberMe"); Cookies.remove("rememberMe");
} }
this.$store this.$store
.dispatch("Login", {...this.loginForm,userType:this.userType}) .dispatch("Login", {...this.loginForm,userType:this.userType, password: encrypt(this.loginForm.password)})
.then(() => { .then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(() => {}); this.$router.push({ path: this.redirect || "/" }).catch(() => {});
}) })

Loading…
Cancel
Save