Browse Source

fix: 登录账号和密码不使用缓存

master
guoapeng 2 weeks ago
parent
commit
76bbcf5ecc
  1. 6
      src/views/login/index.vue

6
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<Record<string, any>>(sys.loginForm)
const loginForm = ref<Record<string, any>>({
name: import.meta.env.FT_NODE_ENV !== 'prod' ? 'admin' : '',
pwd: import.meta.env.FT_NODE_ENV !== 'prod' ? '9973' : '',
})
const focusedInput = ref<string | null>(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"

Loading…
Cancel
Save