关了验证码
parent
4117abecc0
commit
8f578c0a71
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue