Skip to content

Commit

Permalink
v2.9.17+11 Fixed an asynchronous binding verification error, causing …
Browse files Browse the repository at this point in the history
…a check failure
  • Loading branch information
cabbagelol committed Jan 8, 2025
1 parent c061ed9 commit a69e2bc
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions front/src/views/BindOrigin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<div v-show="stepsIndex === 1">
<FormItem :label="$t('captcha.title')" prop="captcha">
<Captcha ref="captcha" @getCaptchaData="getCaptchaData"></Captcha>

</FormItem>
</div>

Expand Down Expand Up @@ -142,15 +141,14 @@ export default {
{required: true, trigger: 'blur'}
],
captcha: [
{required: true, min: 4, max: 4, trigger: 'change'}
{required: true}
]
},
signup: {
originEmail: '',
originName: '',
captcha: '',
},
bindOrigin: {
load: false,
backServiceMsg: ''
Expand All @@ -164,7 +162,7 @@ export default {
},
watch: {
'$route': function (val) {
if (val.name == 'bindOrigin' && !val.query.code) {
if (val.name === 'bindOrigin' && !val.query.code) {
this.stepsIndex = 0;
}
}
Expand All @@ -176,11 +174,17 @@ export default {
},
components: {Captcha},
methods: {
/**
* 获得验证
* @param e
*/
getCaptchaData(e) {
this.signup.captcha = e;
},
// 绑定橘子账户
// 发送邮件
/**
* 绑定橘子账户
* 发送邮件
*/
onBindOrigin() {
const that = this;
let {originEmail, originName, captcha} = this.signup;
Expand Down Expand Up @@ -232,8 +236,10 @@ export default {
})
},
// 绑定橘子验证
// 提供旧用户需要换绑
/**
* 绑定橘子验证
* 提供旧用户需要换绑
*/
onBindOriginVerify() {
const {query} = this.$route;
const code = query.code;
Expand Down

0 comments on commit a69e2bc

Please sign in to comment.