|
|
@ -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 |
|
|
|
// 这里可以执行相应的操作(例如打开搜索框等) |
|
|
|