首页高级筛选添加回车触发搜索功能

This commit is contained in:
付民康
2025-03-27 17:04:06 +08:00
parent 5ab511871b
commit 116a396ffc
2 changed files with 2 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
<template>
<d-input
@keyup.enter="search"
:key="$route.path + $route.query?.val" id="golbalSearch" class="g-header-search"
v-model.trim="softwareName" placeholder="请输入软件名称搜索" @clear="handleClear" clearable >
<template #prepend>

View File

@@ -11,6 +11,7 @@
placeholder="请输入搜索关键字"
@focus="inputFocus"
@blur="inputBlur"
@keyup.enter="search"
:autocomplete="'off'"
v-model="searchStr"
>