From b624ceba2053f5f9d82a63ea0682ca87ca54dc12 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 14 十二月 2022 16:35:30 +0800
Subject: [PATCH] 2022-12-14 肖辉 用户管理模块-新建用户密码校验修改 智能巡查模块-预警研判样式修改

---
 src/views/login/index.vue |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 2d699af..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() {
@@ -147,7 +143,7 @@
         })
         .catch(function (error) {
         });
-    },
+    }
   },
 };
 </script>

--
Gitblit v1.8.0