关了验证码

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() {
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");