Vue.js 2 Only
- LoadAsync
- LoadFast ๐
- Support Desktop and Mobile ๐ฑ๐ป
- Support Full HTTPS ๐
- Support Languages ๐จ๐ณ๐บ๐ธ๐ฌ๐ง๐ฏ๐ต๐ฉ๐ช๐ช๐ธ๐ซ๐ท๐ฎ๐ฉ๐ฎ๐น๐ฐ๐ท๐ณ๐ฑ๐ต๐ฑ๐ท๐บ๐น๐ญ๐น๐ท๐ป๐ณ
npm install vue-nocaptcha
NOTE: Please Keep Update this plugin to maintain nc.js and nch5.js files fresh
// import { nocaptcha } from 'vue-nocaptcha'
import nocaptcha from 'vue-nocaptcha/lib/nocaptcha.js'
export default {
components: {
nocaptcha
}
}
import nocaptcha from 'vue-nocaptcha/lib/nocaptcha_pc.js'
export default {
components: {
nocaptcha
}
}
import nocaptcha from 'vue-nocaptcha/lib/nocaptcha_h5.js'
export default {
components: {
nocaptcha
}
}
<nocaptcha
:appkey="'FFFF00000000016AB730'"
:scene="'test'"
@callback="getToken"
></nocaptcha>
<nocaptcha
:appkey="{
pc: 'FFFF00000000016AB730',
h5: 'FFFF00000000016AB730'
}"
:scene="{
pc: 'test',
h5: 'h5test'
}"
@callback="getToken"
></nocaptcha>
import { nocaptcha } from 'vue-nocaptcha'
export default {
components: {
nocaptcha
}
}
import Vue from 'vue'
import nocaptcha from 'vue-nocaptcha'
Vue.use(nocaptcha)
Normally, it can be control automatic.
Maybe, you need control it yourself.
<nocaptcha
:h5="isMobile()"
></nocaptcha>
NOTE: no h5 prop in single PC/H5 version
use https
<nocaptcha
https
></nocaptcha>
use oversea CDN
<nocaptcha
aeis
></nocaptcha>
use lang
<nocaptcha
lang="'vi_VN'"
></nocaptcha>
events
<nocaptcha
@load="onLoad"
@callback="onSuccess"
@error="onError"
></nocaptcha>