关了验证码

master
冷调 2024-08-13 10:41:57 +08:00
parent 4117abecc0
commit 8f578c0a71
1 changed files with 10 additions and 10 deletions

View File

@ -104,19 +104,19 @@ export default {
} }
}, },
created() { created() {
this.getCode(); // this.getCode();
this.getCookie(); this.getCookie();
}, },
methods: { methods: {
getCode() { // getCode() {
getCodeImg().then(res => { // getCodeImg().then(res => {
this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled; // this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled;
if (this.captchaEnabled) { // if (this.captchaEnabled) {
this.codeUrl = "data:image/gif;base64," + res.data.img; // this.codeUrl = "data:image/gif;base64," + res.data.img;
this.loginForm.uuid = res.data.uuid; // this.loginForm.uuid = res.data.uuid;
} // }
}); // });
}, // },
getCookie() { getCookie() {
const username = Cookies.get("username"); const username = Cookies.get("username");
const password = Cookies.get("password"); const password = Cookies.get("password");