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