enhance(frontend): 検索画面においてEnterキー押下で検索できるように (#12752)

* enhance: 検索画面においてEnterキー押下で検索できるように

* enterイベントを使用するように
This commit is contained in:
Korange
2023-12-28 07:58:32 +09:00
committed by GitHub
parent c525394989
commit 6b4f57781a
5 changed files with 5 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-else-if="tab === 'search'">
<div class="_gaps">
<div>
<MkInput v-model="searchQuery">
<MkInput v-model="searchQuery" @enter="search()">
<template #prefix><i class="ti ti-search"></i></template>
</MkInput>
<MkButton primary rounded style="margin-top: 8px;" @click="search()">{{ i18n.ts.search }}</MkButton>