Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
59de1d68
authored
Jul 26, 2023
by
芋道源码
Committed by
Gitee
Jul 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!182 update src/views/Login/components/MobileForm.vue.
Merge pull request !182 from water/N/A
parents
4571f893
b061c8f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
src/views/Login/components/MobileForm.vue
+10
-1
No files found.
src/views/Login/components/MobileForm.vue
View file @
59de1d68
...
@@ -185,12 +185,17 @@ const signIn = async () => {
...
@@ -185,12 +185,17 @@ const signIn = async () => {
await
getTenantId
()
await
getTenantId
()
const
data
=
await
validForm
()
const
data
=
await
validForm
()
if
(
!
data
)
return
if
(
!
data
)
return
ElLoading
.
service
({
lock
:
true
,
text
:
'正在加载系统中...'
,
background
:
'rgba(0, 0, 0, 0.7)'
})
loginLoading
.
value
=
true
loginLoading
.
value
=
true
smsVO
.
loginSms
.
mobile
=
loginData
.
loginForm
.
mobileNumber
smsVO
.
loginSms
.
mobile
=
loginData
.
loginForm
.
mobileNumber
smsVO
.
loginSms
.
code
=
loginData
.
loginForm
.
code
smsVO
.
loginSms
.
code
=
loginData
.
loginForm
.
code
await
smsLogin
(
smsVO
.
loginSms
)
await
smsLogin
(
smsVO
.
loginSms
)
.
then
(
async
(
res
)
=>
{
.
then
(
async
(
res
)
=>
{
setToken
(
res
?.
token
)
setToken
(
res
)
if
(
!
redirect
.
value
)
{
if
(
!
redirect
.
value
)
{
redirect
.
value
=
'/'
redirect
.
value
=
'/'
}
}
...
@@ -199,6 +204,10 @@ const signIn = async () => {
...
@@ -199,6 +204,10 @@ const signIn = async () => {
.
catch
(()
=>
{})
.
catch
(()
=>
{})
.
finally
(()
=>
{
.
finally
(()
=>
{
loginLoading
.
value
=
false
loginLoading
.
value
=
false
setTimeout
(()
=>
{
const
loadingInstance
=
ElLoading
.
service
()
loadingInstance
.
close
()
},
400
)
})
})
}
}
</
script
>
</
script
>
...
...
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