diff --git a/pages/login/login.vue b/pages/login/login.vue index 455edf6..9cb04af 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -66,7 +66,7 @@ letterSpacing: "10rpx", marginTop: "66rpx", }, - isRemeber: false, + isRemeber: true, form: { username: "", password: "", @@ -75,23 +75,23 @@ }, methods: { login() { - - if(this.form.username==""){ + + if (this.form.username == "") { uni.showToast({ icon: "none", title: `请正确填写登录名`, }); return false } - - if(this.form.password==""){ + + if (this.form.password == "") { uni.showToast({ icon: "none", title: `请正确填写密码`, }); return false } - + this.$u.api.login(this.form).then(res => { this.$u.vuex("vuex_token", res.access_token);