Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
许珑标
薪瑞通-前端
Commits
302184ab
Commit
302184ab
authored
Mar 11, 2025
by
谢子梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stage:登录重复提交BUG 获取验证码后自动获取光标
parent
100a7c2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
src/views/login.vue
src/views/login.vue
+16
-3
No files found.
src/views/login.vue
View file @
302184ab
...
...
@@ -104,6 +104,7 @@
import
{
getCodeImg
,
getLoginSmsCode
}
from
'
@/api/login
'
import
Cookies
from
"
js-cookie
"
;
import
{
encrypt
,
decrypt
}
from
'
@/utils/jsencrypt
'
import
{
set
}
from
'
nprogress
'
;
export
default
{
name
:
"
Login
"
,
...
...
@@ -143,7 +144,9 @@ export default {
VerificationCodeTime
:
60
,
VerificationCodeTitle
:
null
,
// 重新发送验证码弹窗
dialogVisible
:
false
dialogVisible
:
false
,
// 节流参数控制
throttle
:
null
,
};
},
watch
:
{
...
...
@@ -180,7 +183,12 @@ export default {
}
});
if
(
code
.
length
==
6
)
{
if
(
!
this
.
throttle
)
{
this
.
throttle
=
setTimeout
(()
=>
{
this
.
handleLogin
(
code
)
this
.
throttle
=
null
},
500
)
}
}
this
.
$forceUpdate
()
},
...
...
@@ -263,6 +271,11 @@ export default {
this
.
textMessageShow
=
false
this
.
countdownMethod
()
this
.
$forceUpdate
()
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
firstInputRef
.
focus
()
})
},
1000
)
}
})
}
...
...
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