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