快速开始
使用点击式
vue
<template>
<VaptchaButton
v-model="token"
v-model:server="server"
vid="your vid ..."
/>
</template>
<script setup>
import '@chongying-star/vue-vaptcha/style.css';
import { VaptchaButton } from '@chongying-star/vue-vaptcha';
const token = ref(''), server = ref('');
</script>
使用嵌入式
vue
<template>
<VaptchaPanel
v-model="token"
v-model:server="server"
vid="your vid ..."
/>
</template>
<script setup>
import '@chongying-star/vue-vaptcha/style.css';
import { VaptchaPanel } from '@chongying-star/vue-vaptcha';
const token = ref(''), server = ref('');
</script>