Commit 98a263eb authored by zhoulimin's avatar zhoulimin

updata keyup.enter

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