From ed53c5646c0d98e7c4a76e4b4e23f3b3fc168cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Wed, 25 Mar 2020 18:39:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=9A=E8=BF=9B=E5=85=A5=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E6=97=B6=E8=87=AA=E5=8A=A8focus=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/login.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index 278e4b5fb..ee29af551 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -6,7 +6,7 @@
- +
@@ -99,7 +99,8 @@ export default { if(e.key === 'Enter'){ _this.login(); } - } + }; + document.getElementById("usernameInput").focus(); } }