UNPKG

secure-action

Version:

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

13 lines (12 loc) 386 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); 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 }; } exports.useBehavioralCaptcha = useBehavioralCaptcha;