diff --git a/src/views/login.vue b/src/views/login.vue index 2746623..6f7108d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -104,19 +104,19 @@ export default { } }, created() { - this.getCode(); + // this.getCode(); this.getCookie(); }, methods: { - getCode() { - getCodeImg().then(res => { - this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled; - if (this.captchaEnabled) { - this.codeUrl = "data:image/gif;base64," + res.data.img; - this.loginForm.uuid = res.data.uuid; - } - }); - }, + // getCode() { + // getCodeImg().then(res => { + // this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled; + // if (this.captchaEnabled) { + // this.codeUrl = "data:image/gif;base64," + res.data.img; + // this.loginForm.uuid = res.data.uuid; + // } + // }); + // }, getCookie() { const username = Cookies.get("username"); const password = Cookies.get("password");