Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

怎么重置验证码 #13

Open
Bro825 opened this issue Feb 1, 2019 · 6 comments
Open

怎么重置验证码 #13

Bro825 opened this issue Feb 1, 2019 · 6 comments

Comments

@Bro825
Copy link

Bro825 commented Feb 1, 2019

No description provided.

@Bro825
Copy link
Author

Bro825 commented Feb 1, 2019

滑动验证除了刷新页面还有什么办法重置吗?

@mizuka-wu
Copy link
Owner

mizuka-wu commented Feb 1, 2019 via email

@chengqinngling
Copy link

可以设置一个条件,让你重新打开的时候加载此组件。状态就重置了

@TempestRise
Copy link

可以设置一个条件,让你重新打开的时候加载此组件。状态就重置了
关键就是这个重置事件怎么触发,文档的 obj.refresh() 报错

@TempestRise
Copy link

解决了:
用v-if来判断显示隐藏
我这边的实现思路是默认显示验证码,验证码验证返回成功,将if的条件变成false,同时,登录按钮显示。当点击密码或者账号输入框时,if条件变成true,同时 登录按钮隐藏,此时验证码已经刷新了

@SUXHK
Copy link

SUXHK commented May 8, 2021

给此组件加个ref,需要重置时调用refresh()方法即可重置

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants