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

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

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

Loading…
Cancel
Save