This commit is contained in:
shijing 2022-05-06 09:25:11 +08:00
parent 6e6fc0c0ac
commit 6b99cb6cc4
1 changed files with 15 additions and 8 deletions

View File

@ -38,6 +38,13 @@
</el-input>
</el-form-item>-->
<el-form-item prop="username">
<input
type="text"
name="username"
autocomplete="off"
onfocus="passwordType=='password'"
style="display: none;height: 0;padding: 0;"
>
<el-input
ref="username"
v-model="loginForm.username"
@ -61,9 +68,10 @@
name="password"
autocomplete="off"
onfocus="passwordType=='password'"
style="display: none;height: 0;"
style="display: none;height: 0;padding: 0;"
>
<el-input
id="passwordInput"
:key="passwordType"
ref="password"
v-model="loginForm.password"
@ -71,8 +79,8 @@
placeholder="密码"
name="password"
tabindex="2"
auto-complete="off"
id="passwordInput"
autocomplete="new-password"
auto-complete="new-password"
@keyup.enter.native="handleLogin"
>
<svg-icon
@ -161,6 +169,8 @@
},
created() {
// this.getUP();
this.loginForm.username = null;
this.loginForm.password = null;
localStorage.setItem('tolerance', '0.36');
},
watch: {
@ -174,6 +184,8 @@
mounted() {
this.loginForm.username = null;
this.loginForm.password = null;
this.$refs.username = null;
this.$refs.password = null;
},
methods: {
toBigScreen() {
@ -215,11 +227,6 @@
});
},
//读取cookie
getUP() {
// this.loginForm.username = localStorage.getItem("rem_username");
// this.loginForm.password = localStorage.getItem("rem_password");
},
//人脸登录
takePhoto() {
this.limitedPhoto = true;