郫都大屏

This commit is contained in:
yanran200730
2022-08-11 09:28:37 +08:00
parent ff8120d1b5
commit 188d0ed258

View File

@@ -61,6 +61,26 @@
isShowGrid1: false,
currIndex1: 0
}
},
mounted () {
this.$nextTick(() => {
this.$nextTick(() => {
document.addEventListener('keydown', this.onKeyDown)
})
})
},
destroyed () {
document.removeEventListener('keydown', this.onKeyDown)
},
methods: {
onKeyDown (e) {
if (e.keyCode == 27) {
this.isShowGrid1 = false
}
}
}
}
</script>