forms/input/CInputPhoneCode.vue | ●●●●● patch | view | raw | blame | history |
forms/input/CInputPhoneCode.vue
@@ -50,6 +50,11 @@ }, // 发送请求,通知后端给手机发验证码 onCallPhoneCode: Function, // 刷新cd 重新刷新回60秒通知父组件更新图片地址 onRefreshCD: { type: Function, default: () => {}, }, }, data() { return { @@ -79,6 +84,7 @@ if (this.cd === 0) { this.holding = false; this.cd = 60; this.onRefreshCD(true); } }, 1000); };