Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
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
lihuizhen
ec-report-refactor
Commits
396df4f2
Commit
396df4f2
authored
Jan 13, 2022
by
peco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : 登录判断返回状态
parent
553e7aed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
login.vue
pages/login/login.vue
+18
-15
No files found.
pages/login/login.vue
View file @
396df4f2
...
...
@@ -85,12 +85,12 @@ export default {
}
}
let
res
=
await
info
.
url
const
{
Status
,
Result
}
=
res
.
data
if
(
Status
===
'true'
)
{
this
.
$u
.
vuex
(
'vuex_token'
,
`
${
res
.
token_type
}
${
res
.
access_token
}
`
)
this
.
$u
.
toast
(
info
.
msg
)
this
.
removeUserStorage
()
this
.
saveUserStorage
(
res
.
data
.
Result
)
// 登录成功后返回来源页面
let
timer
=
setTimeout
(()
=>
{
const
backUrl
=
uni
.
getStorageSync
(
'back_url'
)
||
'/pages/index/index'
...
...
@@ -100,6 +100,9 @@ export default {
})
clearTimeout
(
timer
)
},
500
)
}
else
{
this
.
$u
.
toast
(
res
.
data
.
Msg
)
}
}
else
{
console
.
log
(
'验证失败'
);
}
...
...
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