created() {
let that = this;
document.onkeydown = function (e) {
e = window.event || e;
if (
that.$route.path == "/testTask/ttList" &&
(e.code == "Enter" || e.code == "NumpadEnter")
) {
that.selectDriverList();
}
};
vue 页面全局添加回车刷新数据
最新推荐文章于 2024-04-17 11:00:00 发布