ngOnInit(): void {

this.registerEnter(); //初始化




}



/*键盘回车事件*/
registerEnter(): void {
let that = this
window.addEventListener('keydown', function (event) {
that.getProductList()
})
}