File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1919 <el-input type =" email" v-model =" ldata.email" ></el-input >
2020 </el-form-item >
2121 <div class =" icon-lable form-required" ><i class =" el-icon-check" /> Captcha</div >
22- <captcha class =" margin-bottom" />
22+ <captcha ref = " captchaElement " class =" margin-bottom" />
2323 <el-form-item >
2424 <el-button type =" primary" v-on:click =" onSubmit();" :loading =" buttonLoading" >Register</el-button >
2525 <el-button v-on:click =" $store.state.user.showregister = false;" >Cancel</el-button >
@@ -96,6 +96,9 @@ export default {
9696 };
9797 },
9898 methods: {
99+ refresh_captcha () {
100+ this .$refs .captchaElement .refresh_captcha ();
101+ },
99102 submit () {
100103 this .buttonLoading = true ;
101104 this .$axios
@@ -130,6 +133,7 @@ export default {
130133 // Unknown error
131134 this .$SegmentMessage .error (this , ' Unknown error' );
132135 }
136+ this .refresh_captcha ();
133137 this .buttonLoading = false ;
134138 });
135139 },
You can’t perform that action at this time.
0 commit comments