From 639e0bf91ff4aaf0a2fa9a4b897677902c6ce89c Mon Sep 17 00:00:00 2001 From: huangyp Date: Fri, 11 Apr 2025 19:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=8A=A9=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/jsLibraryMappings.xml | 6 ------ .idea/misc.xml | 2 +- dev-assistant-web/index.html | 19 ++++++++++--------- dev-assistant-web/src/views/Login.vue | 23 +++++++++-------------- 4 files changed, 20 insertions(+), 30 deletions(-) delete mode 100644 .idea/jsLibraryMappings.xml diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index 64109b8..0000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index f0b3b93..af9660e 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/dev-assistant-web/index.html b/dev-assistant-web/index.html index fd1b4df..092bbae 100644 --- a/dev-assistant-web/index.html +++ b/dev-assistant-web/index.html @@ -1,13 +1,14 @@ - - - - + + + + + 开发助手 - - -
- - + + +
+ + diff --git a/dev-assistant-web/src/views/Login.vue b/dev-assistant-web/src/views/Login.vue index 1ab7011..103ed22 100644 --- a/dev-assistant-web/src/views/Login.vue +++ b/dev-assistant-web/src/views/Login.vue @@ -6,6 +6,7 @@ import {loginApi} from "~/api/login.js"; const loginFormRef = ref() const inputRef = ref() const router = useRouter() +const passwordReadonly = ref(true) const loginForm = ref({ password: '' @@ -34,18 +35,11 @@ const login = async (loginFormRef) => { }) } -let timer = null -const passwordKeyup = (loginFormRef) => { - if (timer) { - clearTimeout(timer) - } - timer = setTimeout(() => { - login(loginFormRef) - }, 300); -} - onMounted(() => { inputRef.value.focus() + setTimeout(() => { + passwordReadonly.value = false + }, 1) }) @@ -60,12 +54,13 @@ onMounted(() => { + ref="inputRef"> 登录