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
da003db4
Commit
da003db4
authored
Sep 06, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
f8bf9176
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
login.vue
dsk-operate-ui/src/views/login.vue
+16
-11
No files found.
dsk-operate-ui/src/views/login.vue
View file @
da003db4
...
@@ -268,7 +268,6 @@
...
@@ -268,7 +268,6 @@
},
},
getsms
(){
getsms
(){
logincaptchaSms
(
this
.
dxform
).
then
(
res
=>
{
logincaptchaSms
(
this
.
dxform
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'已发送短信!'
)
this
.
$message
.
success
(
'已发送短信!'
)
let
_this
=
this
let
_this
=
this
...
@@ -325,16 +324,22 @@
...
@@ -325,16 +324,22 @@
froms
.
phonenumber
=
this
.
dxform
.
phonenumber
froms
.
phonenumber
=
this
.
dxform
.
phonenumber
froms
.
smsCode
=
this
.
dxform
.
smsCode
froms
.
smsCode
=
this
.
dxform
.
smsCode
smsLogin
(
JSON
.
stringify
(
froms
)).
then
(
res
=>
{
smsLogin
(
JSON
.
stringify
(
froms
)).
then
(
res
=>
{
setToken
(
res
.
data
.
token
)
if
(
res
.
code
==
200
)
{
store
.
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
setToken
(
res
.
data
.
token
)
setTenantid
(
res
.
data
.
tenantId
)
store
.
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
defaultTenantid
().
then
(
res
=>
{
setTenantid
(
res
.
data
.
tenantId
)
if
(
res
.
data
.
tenantId
==
""
||
res
.
data
.
tenantId
==
null
){
//无默认企业id
defaultTenantid
().
then
(
res
=>
{
this
.
goin
()
if
(
res
.
data
.
tenantId
==
""
||
res
.
data
.
tenantId
==
null
)
{
//无默认企业id
}
else
{
this
.
goin
()
this
.
$router
.
push
({
path
:
this
.
redirect
||
"/"
}).
catch
(()
=>
{});
}
else
{
}
this
.
$router
.
push
({
path
:
this
.
redirect
||
"/"
}).
catch
(()
=>
{
})
});
}
})
}
else
{
this
.
getCode
()
this
.
showcode
=
true
}
})
})
}
}
})
})
...
...
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