diff --git a/src/views/login.vue b/src/views/login.vue
index b31bd22..ce4fe1c 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -28,7 +28,7 @@
+
+
+
@@ -93,8 +101,17 @@ import { encrypt, decrypt } from "@/utils/jsencrypt";
export default {
name: "Login",
+ computed: {
+ type() {
+ return this.flag ? "text" : "password";
+ },
+ elIcon() {
+ return this.flag ? "el-icon-minus" : "el-icon-view";
+ },
+ },
data() {
return {
+ flag: false,
codeUrl: "",
loginForm: {
username: "",
@@ -192,6 +209,14 @@ export default {