diff --git a/src/views/demo/table/index.vue b/src/views/demo/table/index.vue index 835c586..897a821 100644 --- a/src/views/demo/table/index.vue +++ b/src/views/demo/table/index.vue @@ -29,7 +29,7 @@ v-model:value="queryItems.title" type="text" placeholder="请输入标题" - @keydown.enter="$table?.handleSearch" + @keypress.enter="$table?.handleSearch" /> diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 0eaa1dc..411c635 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -31,7 +31,7 @@ show-password-on="mousedown" placeholder="123456" :maxlength="20" - @keydown.enter="handleLogin" + @keypress.enter="handleLogin" />