From b4fc73e7ba0c2d551707deec21655d8e81ed7ba1 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期五, 25 十一月 2022 15:49:59 +0800 Subject: [PATCH] 115,138 --- src/views/login/index.vue | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3418821..3448171 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -55,6 +55,8 @@ <script> import { isvalidUsername } from "@/utils/validate"; import { createNamespacedHelpers } from "vuex"; +import users from "@/api/users"; + const { mapActions } = createNamespacedHelpers("users"); export default { name: "login", @@ -77,8 +79,6 @@ loginForm: { username:"", password:"", - // username: "admin", - // password: "macro123", }, imgUrl:'', loginRules: { @@ -108,11 +108,7 @@ }, methods: { showPwd() { - if (!this.pwdType) { - this.pwdType = true; - } else { - this.pwdType = false; - } + this.pwdType = !this.pwdType; }, ...mapActions(["login"]), handleLogin() { @@ -127,7 +123,6 @@ if (response.code === 200) { // 璁剧疆toke鏃堕棿 // 淇濆瓨token - console.log(response); sessionStorage.setItem('token',response.data.token); // 淇濆瓨token sessionStorage.setItem('tokenHead',response.data.tokenHead); @@ -145,12 +140,10 @@ } }) } - // console.log(response); }) .catch(function (error) { - console.log(error); }); - }, + } }, }; </script> @@ -175,6 +168,10 @@ top: 20%; right: 5%; width: 360px; + &:deep(.el-input__inner){ + background-color: #fff !important; + border: 1px solid #dcdfe6 !important; + } } .text { -- Gitblit v1.8.0