只需要将@click=“fun()”改为@click.native=“fun()”,即可监听下拉菜单的点击事件。

如图所示:

element-ui中下拉菜单中的@click事件不会触发的问题

 

嗯,就酱~

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-04-18
  • 2022-12-23
相关资源
相似解决方案