From 544ec611d7e0fdda837c2c624192fc0093429a6d Mon Sep 17 00:00:00 2001 From: "271556543@qq.com" <271556543@qq.com> Date: Fri, 30 Sep 2022 14:36:48 +0800 Subject: [PATCH] 2022-9-30 --- pages/login/login.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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);