|
|
@@ -103,19 +103,19 @@ export default {
|
|
|
// });
|
|
|
this.$http
|
|
|
.post("/auth/phoneLogin", {
|
|
|
- phone: this.ruleForm.phone
|
|
|
+ phone: this.ruleForm.phone
|
|
|
})
|
|
|
.then(res => {
|
|
|
- localStorage.setItem("token", res);
|
|
|
- return this.$store.dispatch("getUserInfo");
|
|
|
+ localStorage.setItem("token", res);
|
|
|
+ return this.$store.dispatch("getUserInfo");
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$toast.clear();
|
|
|
- this.$router.replace({ path: "/" });
|
|
|
+ this.$toast.clear();
|
|
|
+ this.$router.replace({ path: "/" });
|
|
|
})
|
|
|
.catch(e => {
|
|
|
- this.$toast.clear();
|
|
|
- this.$toast(e.error || "登录失败");
|
|
|
+ this.$toast.clear();
|
|
|
+ this.$toast(e.error || "登录失败");
|
|
|
});
|
|
|
},
|
|
|
sendSms() {
|