如何在router-link上注册事件

273 阅读1分钟

自定义组件标签没有事件router-link会阻止事件,只有通过.native事件修饰符才能注册事件 如: <router-link to="/login/ecode" @click.native="hide">扫码登录