Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
3252878a
Commit
3252878a
authored
Sep 06, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
da003db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
login.vue
dsk-operate-ui/src/views/login.vue
+6
-0
No files found.
dsk-operate-ui/src/views/login.vue
View file @
3252878a
...
...
@@ -235,6 +235,7 @@
smstime
:
60
,
smstitle
:
'获取验证码'
,
showcode
:
false
,
//是否展示验证码
nosend
:
false
,
};
},
...
...
@@ -267,16 +268,21 @@
});
},
getsms
(){
if
(
this
.
nosend
==
true
){
return
false
}
logincaptchaSms
(
this
.
dxform
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'已发送短信!'
)
let
_this
=
this
_this
.
nosend
=
true
this
.
timers
=
setInterval
(()
=>
{
_this
.
smstitle
=
_this
.
smstime
+
'秒后重试'
_this
.
smstime
--
;
if
(
_this
.
smstime
<=
0
){
_this
.
smstitle
=
'发送验证码'
clearInterval
(
_this
.
timers
)
_this
.
nosend
=
false
}
},
1000
)
}
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