methods: {
dianjizhuce() {
console.log("进入点击注册了");
axios
.post("http://106.14.254.181:3000/zhuce", {
mobile: this.mobile,
password: this.password,
})
.then((data) => {
console.log(data);
if (data.data.code == "200") {
this.$message({
message: data.data.info2,
type: "success",
});
this.$router.push('/zhuce')
this.mobile= ""
this.password=""
} else {
this.$message({
message: "警告哦,注册可能有点问题o ",
type: "warning",
});
}
});
},
denglu(){
this.$router.push('/login')
}
},
vue注册的简单实现逻辑
最新推荐文章于 2023-04-12 10:17:24 发布