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(); this.getCookie();
}, },
methods: { methods: {
getCode() { getCode() {
getCodeImg().then(res => { if(this.captchaOnOff){
this.captchaOnOff = res.data.captchaOnOff === undefined ? true : res.data.captchaOnOff; getCodeImg().then(res => {
if (this.captchaOnOff) {
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");