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"