csg6 1 月之前
父節點
當前提交
16d5f1671e
共有 1 個文件被更改,包括 12 次插入10 次删除
  1. 12 10
      src/views/login.vue

+ 12 - 10
src/views/login.vue

@@ -93,6 +93,8 @@ export default {
93 93
       loginForm: {
94 94
         username: "",
95 95
         password: "",
96
+        // username: "ganjiantest",
97
+        // password: "Hzsh.eitc@6626.admin",
96 98
         rememberMe: false,
97 99
         code: "",
98 100
         uuid: "",
@@ -127,16 +129,16 @@ export default {
127 129
     this.getCookie();
128 130
   },
129 131
   methods: {
130
-    getCode() {
131
-      getCodeImg().then((res) => {
132
-        this.captchaEnabled =
133
-          res.captchaEnabled === undefined ? true : res.captchaEnabled;
134
-        if (this.captchaEnabled) {
135
-          this.codeUrl = "data:image/gif;base64," + res.img;
136
-          this.loginForm.uuid = res.uuid;
137
-        }
138
-      });
139
-    },
132
+    // getCode() {
133
+    //   getCodeImg().then((res) => {
134
+    //     this.captchaEnabled =
135
+    //       res.captchaEnabled === undefined ? true : res.captchaEnabled;
136
+    //     if (this.captchaEnabled) {
137
+    //       this.codeUrl = "data:image/gif;base64," + res.img;
138
+    //       this.loginForm.uuid = res.uuid;
139
+    //     }
140
+    //   });
141
+    // },
140 142
     getCookie() {
141 143
       const username = Cookies.get("username");
142 144
       const password = Cookies.get("password");