Commit 98a263eb authored by zhoulimin's avatar zhoulimin

updata keyup.enter

parent fd82be22
......@@ -34,6 +34,7 @@ pipeline:
store-cache:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0
rebuild: true
check: yarn.lock
mount:
- ./node_modules
volumes:
......
......@@ -20,6 +20,7 @@
v-model.trim="form.userid"
autofocus="autofocus"
placeholder="请输入账号"
@keyup.enter.native="login_remember_info()"
></el-input>
</el-form-item>
<el-form-item>
......@@ -28,6 +29,7 @@
type="password"
v-model.trim="form.password"
placeholder="请输入密码"
@keyup.enter.native="login_remember_info()"
>
<!-- <span
slot="suffix"
......@@ -56,6 +58,7 @@
v-model.trim="yzms.yzm"
placeholder="请输入验证码"
:validate-event="false"
@keyup.enter.native="login_remember_info()"
></el-input>
<img
class="yzm_img"
......@@ -524,6 +527,14 @@ export default {
this.init();
},
created() {
// this.$nextTick(() => {
// document.onkeydown = (e) => {
// if (e.code == 13) {
// console.log(222);
// }
// };
// });
if (localStorage.getItem("rememberPsw") == "true") {
var pwd = getCookie("password");
var bytes = CryptoJS.AES.decrypt(pwd.toString(), "swuE9cmCZQwrkYRV");
......@@ -617,6 +628,7 @@ export default {
});
},
login_remember_info() {
console.log(1111)
if (this.checked) {
setCookie(this.form.userid, this.form.password, 7);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment