Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
高淑倩
7-Eleven
Commits
29bfb064
Commit
29bfb064
authored
Sep 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未登录_removeStorageSync
parent
752187f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wxService.js
src/utils/wxService.js
+3
-2
No files found.
src/utils/wxService.js
View file @
29bfb064
...
...
@@ -59,7 +59,8 @@ class WXService extends Http {
this
.
setPageLoadStatus
()
wx
.
hideLoading
()
}).
catch
(
res
=>
{
// if (res.msg && res.msg.indexOf('未登录') > -1) {
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'未登录'
)
>
-
1
)
{
wx
.
removeStorageSync
(
'_baseUserInfo'
)
// if (!this.getUserInfoLimitCount) {
// this.getUserInfoLimitCount = 1
// } else {
...
...
@@ -80,7 +81,7 @@ class WXService extends Http {
// return false
// }
// }
//
} else
}
else
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'请重新授权'
)
>
-
1
)
{
wx
.
setStorageSync
(
'reLoginErr'
,
true
)
wxService
.
router
(
`/pages/userCenter/userCenter`
).
back
()
...
...
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