正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> | 29 | <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> |
| 30 | </el-input> | 30 | </el-input> |
| 31 | </el-form-item> | 31 | </el-form-item> |
| 32 | - <el-form-item prop="code" v-if="captchaOnOff"> | 32 | + <el-form-item prop="code" v-if="captchaEnabled"> |
| 33 | <el-input | 33 | <el-input |
| 34 | v-model="registerForm.code" | 34 | v-model="registerForm.code" |
| 35 | auto-complete="off" | 35 | auto-complete="off" |
| @@ -104,7 +104,7 @@ export default { | @@ -104,7 +104,7 @@ export default { | ||
| 104 | code: [{ required: true, trigger: "change", message: "请输入验证码" }] | 104 | code: [{ required: true, trigger: "change", message: "请输入验证码" }] |
| 105 | }, | 105 | }, |
| 106 | loading: false, | 106 | loading: false, |
| 107 | - captchaOnOff: true | 107 | + captchaEnabled: true |
| 108 | }; | 108 | }; |
| 109 | }, | 109 | }, |
| 110 | created() { | 110 | created() { |
| @@ -113,8 +113,8 @@ export default { | @@ -113,8 +113,8 @@ export default { | ||
| 113 | methods: { | 113 | methods: { |
| 114 | getCode() { | 114 | getCode() { |
| 115 | getCodeImg().then(res => { | 115 | getCodeImg().then(res => { |
| 116 | - this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff; | ||
| 117 | - if (this.captchaOnOff) { | 116 | + this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled; |
| 117 | + if (this.captchaEnabled) { | ||
| 118 | this.codeUrl = "data:image/gif;base64," + res.img; | 118 | this.codeUrl = "data:image/gif;base64," + res.img; |
| 119 | this.registerForm.uuid = res.uuid; | 119 | this.registerForm.uuid = res.uuid; |
| 120 | } | 120 | } |
| @@ -134,7 +134,7 @@ export default { | @@ -134,7 +134,7 @@ export default { | ||
| 134 | }).catch(() => {}); | 134 | }).catch(() => {}); |
| 135 | }).catch(() => { | 135 | }).catch(() => { |
| 136 | this.loading = false; | 136 | this.loading = false; |
| 137 | - if (this.captchaOnOff) { | 137 | + if (this.captchaEnabled) { |
| 138 | this.getCode(); | 138 | this.getCode(); |
| 139 | } | 139 | } |
| 140 | }) | 140 | }) |
-
请 注册 或 登录 后发表评论