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
b6f6b432
Commit
b6f6b432
authored
Jun 11, 2021
by
李丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交时校验验证码,验证码错误时更新验证码
parent
2ccf5885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
src/pages/login.vue
src/pages/login.vue
+15
-12
No files found.
src/pages/login.vue
View file @
b6f6b432
...
...
@@ -53,6 +53,7 @@
<el-input
v-model.trim=
"yzms.yzm"
placeholder=
"请输入验证码"
:validate-event=
"false"
></el-input>
<img
class=
"yzm_img"
...
...
@@ -241,6 +242,7 @@
<el-input
v-model.trim=
"yzms.yzm"
placeholder=
"请输入验证码"
:validate-event=
"false"
></el-input>
<s-identify
class=
"yzm_img"
...
...
@@ -454,7 +456,7 @@ export default {
},
imgSrc
:
""
,
yzmRules
:
{
yzm
:
[{
validator
:
validateYzm
,
trigger
:
"
blur
"
}],
yzm
:
[{
validator
:
validateYzm
}],
},
yzmState
:
false
,
ruleFormIcon
:
{
...
...
@@ -528,17 +530,18 @@ export default {
type
:
"
error
"
,
});
}
else
{
// self.$refs["yzms"].validate((volid_yzm) => {
// if (volid_yzm) {
self
.
submitLoginForm
();
// } else {
// self.$message({
// message: "请完善验证码",
// type: "error",
// });
// self.refreshCode();
// }
// });
self
.
$refs
[
"
yzms
"
].
validate
((
volid_yzm
)
=>
{
if
(
volid_yzm
)
{
self
.
submitLoginForm
();
}
else
{
// self.$message({
// message: "请完善验证码",
// type: "error",
// });
self
.
refreshCode
();
this
.
getImg
();
}
});
}
},
// 提交登录表单
...
...
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