Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
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
吴迪
gs1
Commits
be95e227
Commit
be95e227
authored
Dec 13, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录判断字段更改
parent
5381f1c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
login.vue
src/views/User/login.vue
+4
-7
No files found.
src/views/User/login.vue
View file @
be95e227
...
...
@@ -115,24 +115,21 @@ export default {
this
.
$api
.
user
.
login
({
...
this
.
userForm
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
,
!
res
.
success
)
if
(
!
res
.
success
)
{
this
.
userLoginError
=
res
.
returnMsg
||
'用户名或密码不正确!'
this
.
showUserLoginError
=
true
;
}
else
{
localStorage
.
setItem
(
'loginInfo'
,
JSON
.
stringify
(
res
.
data
))
if
(
res
.
levels
===
null
)
{
if
(
res
.
data
.
levels
===
null
)
{
localStorage
.
setItem
(
'gs-user'
,
JSON
.
stringify
({
type
:
'unVerify'
}))
this
.
$router
.
push
({
path
:
'/MyManage/UnVerify/index'
})
}
else
if
(
res
.
levels
===
4
)
{
}
else
if
(
res
.
data
.
levels
===
4
)
{
localStorage
.
setItem
(
'gs-user'
,
JSON
.
stringify
({
type
:
'verify'
}))
this
.
$router
.
push
({
path
:
'/MyManage/SystemMember/index'
})
}
else
if
(
res
.
levels
===
0
)
{
}
else
if
(
res
.
data
.
levels
===
0
)
{
localStorage
.
setItem
(
'gs-user'
,
JSON
.
stringify
({
type
:
'admin'
}))
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
}
else
{
this
.
userLoginError
=
'用户名或密码不正确!'
this
.
showUserLoginError
=
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