element的监听按钮无效

问题:

  使用

@keyup.enter="queryInput()"

  无效

解决办法:

@keyup.enter.native="queryInput()"

  在后面加上  .native  即可

原文地址:https://www.cnblogs.com/lucky-jun/p/14314176.html