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
939eebf8
Commit
939eebf8
authored
Jul 04, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: router_back
parent
90c10a27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
wxService.js
src/utils/wxService.js
+3
-5
No files found.
src/utils/wxService.js
View file @
939eebf8
...
...
@@ -80,7 +80,6 @@ class WXService extends Http {
// }
// }
console
.
log
(
'--mmmmm--'
,
res
.
msg
)
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'未登录'
)
>
-
1
)
{
if
(
!
this
.
getUserInfoLimitCount
)
{
this
.
getUserInfoLimitCount
=
1
...
...
@@ -95,15 +94,14 @@ class WXService extends Http {
duration
:
2000
})
}
else
{
console
.
log
(
'===重新='
,
this
.
getUserInfoLimitCount
)
this
.
reLogin
()
}
return
false
}
else
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'请重新授权'
)
>
-
1
)
{
wx
.
setStorageSync
(
'reLoginErr'
,
true
)
wxService
.
router
(
`/pages/userCenter/userCenter`
).
replace
()
// wxService.router(`/pages/userCenter/userCenter`).replace()
console
.
log
(
"授权跳转"
)
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