From 76bbcf5ecc664dd719e29790f6d0359700646211 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sun, 6 Jul 2025 13:06:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=92=8C=E5=AF=86=E7=A0=81=E4=B8=8D=E4=BD=BF=E7=94=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index b0463d2..69da7d3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -24,7 +24,10 @@ const inputValue = ref('') const keyboardVisible = ref(false) const keyboardType = ref<'text' | 'number'>('text') const softKeyboardRef = ref() -const loginForm = ref>(sys.loginForm) +const loginForm = ref>({ + name: import.meta.env.FT_NODE_ENV !== 'prod' ? 'admin' : '', + pwd: import.meta.env.FT_NODE_ENV !== 'prod' ? '9973' : '', +}) const focusedInput = ref(null) const keyboardKey = ref(nanoid()) @@ -149,6 +152,7 @@ const loginHandle = async () => { v-prevent-keyboard size="large" name="pwd" + autocomplete="new-password" placeholder="密码" type="password" @focus="openKeyboard"