修改 hidden 类名,避免和 unocss 产生冲突

This commit is contained in:
Hooray Hu 2023-04-26 16:12:55 +08:00
parent 394694bc4c
commit 250c2fb7f6

View File

@ -81,7 +81,7 @@ const resultList = computed(() => {
watch(() => isShow.value, (val) => {
if (val) {
document.body.classList.add('hidden')
document.body.classList.add('overflow-hidden')
searchResultRef.value.scrollTop = 0
// input focus vue
hotkeys('up', keyUp)
@ -92,7 +92,7 @@ watch(() => isShow.value, (val) => {
}, 500)
}
else {
document.body.classList.remove('hidden')
document.body.classList.remove('overflow-hidden')
hotkeys.unbind('up', keyUp)
hotkeys.unbind('down', keyDown)
hotkeys.unbind('enter', keyEnter)