修复关闭验证码模式后首页仍调用验证码接口的问题

dev
smallchill 4 years ago
parent e45da26ff7
commit 54306ff7c5
  1. 12
      src/page/login/userlogin.vue

@ -117,11 +117,13 @@
props: [], props: [],
methods: { methods: {
refreshCode() { refreshCode() {
getCaptcha().then(res => { if (this.website.captchaMode) {
const data = res.data; getCaptcha().then(res => {
this.loginForm.key = data.key; const data = res.data;
this.loginForm.image = data.image; this.loginForm.key = data.key;
}) this.loginForm.image = data.image;
})
}
}, },
showPassword() { showPassword() {
this.passwordType === "" this.passwordType === ""

Loading…
Cancel
Save