shakukansp
V2EX  ›  问与答

Vue.js 使用中的问题

  •  
  •   shakukansp · Jan 4, 2019 · 2021 views
    This topic created in 2859 days ago, the information mentioned may be changed or developed.

    用 recaptcha

    vue 用了 vue-router,切换路由再切回去验证码就不加载第二次了

    有不刷新页面就重新加载的办法吗?

    1 replies  •  2019-01-04 21:26:46 +08:00
    Biwood
    Biwood
    Jan 4, 2019❤️1
    1
    给组件设置 key 属性,跟路由关联起来,比如 :key="$route.fullPath"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3082 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 12:22 · PVG 20:22 · LAX 04:22 · JFK 07:22
    ♥ Do have faith in what you're doing.