|
|
@ -260,7 +260,7 @@ const router = useRouter()
|
|
|
|
onKeyStroke('Enter', () => {
|
|
|
|
onKeyStroke('Enter', () => {
|
|
|
|
const selectedPackage = results.value[selectedIndex.value]
|
|
|
|
const selectedPackage = results.value[selectedIndex.value]
|
|
|
|
if (selectedPackage) {
|
|
|
|
if (selectedPackage) {
|
|
|
|
router.go(withBase(selectedPackage.id))
|
|
|
|
router.go(selectedPackage.id)
|
|
|
|
emit('close')
|
|
|
|
emit('close')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -391,7 +391,7 @@ useEventListener('popstate', (event) => {
|
|
|
|
<a
|
|
|
|
<a
|
|
|
|
v-for="(p, index) in results"
|
|
|
|
v-for="(p, index) in results"
|
|
|
|
:key="p.id"
|
|
|
|
:key="p.id"
|
|
|
|
:href="withBase(p.id)"
|
|
|
|
:href="p.id"
|
|
|
|
class="result"
|
|
|
|
class="result"
|
|
|
|
:class="{
|
|
|
|
:class="{
|
|
|
|
selected: selectedIndex === index
|
|
|
|
selected: selectedIndex === index
|
|
|
|