码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • vue2 顶象 安全 验证码的使用


    顶象-业务安全引领者,让数字世界无风险

    类似与这样的登录之前的验证  滑动一个盒子了 或者是 顺序点击文字了 等

    1. <template>
    2. <a-modal
    3. :closable="false"
    4. :visible="show"
    5. @cancel="handleCancel"
    6. :maskClosable="true"
    7. :width="348"
    8. :footer="null">
    9. <a-spin :spinning="Loading">
    10. <div ref="captcha" style="min-height:150px;"></div>
    11. <remote-js src="https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></remote-js>
    12. </a-spin>
    13. </a-modal>
    14. </template>
    15. <script>
    16. export default {
    17. props: {
    18. show: {
    19. type: Boolean,
    20. default: false
    21. }
    22. },
    23. data () {
    24. return {
    25. Loading: false
    26. }
    27. },
    28. created () {},
    29. watch: {
    30. show (newQuestion, oldQuestion) {
    31. if (newQuestion === true) {
    32. this.Loading = true
    33. setTimeout(() => {
    34. this.Loading = false
    35. _dx.Captcha(this.$refs.captcha, {
    36. appId: 'xxxx',
    37. success: token => {
    38. this.$emit('success', { token: token })
    39. }
    40. })
    41. }, 1000)
    42. }
    43. }
    44. },
    45. methods: {
    46. handleCancel () {
    47. this.$emit('cancel')
    48. }
    49. }
    50. }
    51. </script>

    这就是一个cdn 

    需要注册对应的账号

  • 相关阅读:
    如何在 🤗 Space 上托管 Unity 游戏
    深入源码剖析ThreadPoolExecutor的工作原理
    《MySQL学习笔记》数据库增删查改(进阶)
    设计模式-行为型模式
    [PostgreSql]生产级别数据库安装要考虑哪些问题?
    Qt+opencv 鼠标画线实现几何图形识别并动态创建
    基于车联网的车辆编队标准现状及展望
    Python 越来越火爆
    Packet Tracer中交换机的配置及Lab2实验
    LightDB数据库中的模式
  • 原文地址:https://blog.csdn.net/lele66688888/article/details/138112306
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号