Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
78250f20
authored
2020-11-17 11:20:25 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决按下enter键报错
1 parent
f062febb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/components/searchHead/searchHead.vue
src/components/searchHead/searchHead.vue
View file @
78250f2
...
...
@@ -110,17 +110,18 @@ export default {
};
},
created
()
{
},
mounted
()
{
let
self
=
this
;
document
.
onkeydown
=
function
(
e
)
{
//按下回车提交
let
key
=
window
.
event
.
keyCode
;
//事件中keycode=13为回车事件
if
(
key
==
13
)
{
self
.
onSubmit
();
//
self.onSubmit();
}
};
},
mounted
()
{},
methods
:
{
//重置
reset
()
{
...
...
Please
register
or
sign in
to post a comment