diff --git a/src/views/login1.vue b/src/views/login1.vue index 2adf4dbe..9fbf27c1 100644 --- a/src/views/login1.vue +++ b/src/views/login1.vue @@ -108,21 +108,21 @@ 登 录 登 录 中... 登 录 登 录 中... @@ -269,7 +269,7 @@ export default { this.$store.dispatch('IsAdmin', this.loginForm).then(res => { if (res.data) { this.isAdmin = res.data - //this.isLogin() + this.$message.success('检测到您是超级管理账号,需进行手机检验') } else { this.isLogin() } @@ -279,15 +279,6 @@ export default { this.$refs.loginForm.validate(valid => { if (valid) { this.loading = true - if (this.loginForm.rememberMe) { - Cookies.set('username', this.loginForm.username, { expires: 30 }) - Cookies.set('password', encrypt(this.loginForm.password), { expires: 30 }) - Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 }) - } else { - Cookies.remove('username') - Cookies.remove('password') - Cookies.remove('rememberMe') - } let that = this this.loginForm.loginMethod = this.loginMethod this.$store.dispatch('IsLogin', this.loginForm) @@ -311,7 +302,7 @@ export default { } }) }, - sendAdminCode(){ + sendAdminCode() { this.loginForm.mobile = this.loginForm.username this.$store.dispatch('GetPhoneCode', this.loginForm) .then(() => { @@ -375,7 +366,7 @@ export default { this.loginForm.code = '' this.loginForm.verificationCode = '' this.loginForm.loginMethod = '' - this.isAdmin=false + this.isAdmin = false this.getCode() } } diff --git a/src/views/register1.vue b/src/views/register1.vue index 6b7edb5c..8e647668 100644 --- a/src/views/register1.vue +++ b/src/views/register1.vue @@ -23,6 +23,7 @@ auto-complete="off" placeholder="密码" @keyup.enter.native="handleRegister" + show-password > @@ -35,6 +36,7 @@ auto-complete="off" placeholder="确认密码" @keyup.enter.native="handleRegister" + show-password >