Browse Source

搜索菜单

master_hella_20240701
陈薪名 9 months ago
parent
commit
9f9774fd59
  1. 8
      src/components/RouterSearch/index.vue

8
src/components/RouterSearch/index.vue

@ -117,17 +117,17 @@ const options = computed(() => {
})
})
function remoteMethod(data) {
const remoteMethod = (data) => {
//
value.value = data
}
function handleChange(path) {
const handleChange = (path) => {
router.push({ path })
hiddenTopSearch();
}
function hiddenTopSearch() {
const hiddenTopSearch = () => {
showTopSearch.value = false
}
@ -142,7 +142,7 @@ onUnmounted(() => {
})
// ctrl + k
function listenKey(event) {
const listenKey = (event) => {
if ((event.ctrlKey || event.metaKey) && event.key === 'k') {
showSearch.value = !showSearch.value
//

Loading…
Cancel
Save