Commit d9fa13846b0cb29efb90870c7d2b5e1736b84036

Authored by 史婷婷
1 parent 0cef310f

feat: 登录页验证码逻辑更改

Showing 2 changed files with 4 additions and 2 deletions
1 1 // 应用全局配置
2 2 module.exports = {
3 3
4   - baseUrl: 'http://ft.wecando21cn.com/api',
  4 + // baseUrl: 'http://ft.wecando21cn.com/api',
  5 + baseUrl: 'http://erp.qgutech.com/api',
5 6 // baseUrl: 'http://127.0.0.1:8085',
6 7 // 应用信息
7 8 appInfo: {
... ...
... ... @@ -83,7 +83,8 @@
83 83 // 获取图形验证码
84 84 getCode() {
85 85 getCodeImg().then(res => {
86   - this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
  86 + console.log('getCodeImgres', res)
  87 + this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled
87 88 if (this.captchaEnabled) {
88 89 this.codeUrl = res.data.image
89 90 this.loginForm.sn = res.data.sn
... ...