UNPKG

secure-action

Version:

Secure Action 是一个基于行为的验证码组件,适用于 Vue 3。

13 lines (12 loc) 281 B
function useBehavioralCaptcha(instance, fn) { async function withInterceptor() { var _a; const result = await ((_a = instance.value) == null ? void 0 : _a.verify()); if (result) await fn(); } return { withInterceptor }; } export { useBehavioralCaptcha };