Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-login
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-login
Commits
98a263eb
Commit
98a263eb
authored
Dec 15, 2021
by
zhoulimin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata keyup.enter
parent
fd82be22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
.beagle.yml
.beagle.yml
+1
-0
src/pages/login.vue
src/pages/login.vue
+12
-0
No files found.
.beagle.yml
View file @
98a263eb
...
@@ -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
:
...
...
src/pages/login.vue
View file @
98a263eb
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment