Auto Commit

上级 0367277f
...@@ -205,6 +205,13 @@ function initFirstData() { ...@@ -205,6 +205,13 @@ function initFirstData() {
state.searchValue = storageUid state.searchValue = storageUid
onSearch() onSearch()
} }
document.addEventListener('keydown', (e) => {
console.log(e, 'e')
if (e.ctrlKey && e.keyCode === 79) {
console.log('Ctrl+y');
onSearch()
}
})
// storage // storage
// if (state.dataSource) { // if (state.dataSource) {
// initFirstData(); // initFirstData();
...@@ -221,13 +228,7 @@ function initFirstData() { ...@@ -221,13 +228,7 @@ function initFirstData() {
} }
}) })
document.addEventListener('keydown', (e) => {
console.log(e, 'e')
if (e.ctrlKey && e.keyCode === 79) {
console.log('Ctrl+y');
onSearch()
}
})
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册