Pre Merge pull request !199 from WenTao.Wu/bugfix/dev

This commit is contained in:
WenTao.Wu 2022-07-13 03:08:53 +00:00 committed by Gitee
commit e4590de489
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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