Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
H5active
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
Rui.xu
H5active
Commits
5321652e
Commit
5321652e
authored
Jul 05, 2019
by
许瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear console
parent
41f81c6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
index.js
src/index.js
+0
-2
No files found.
src/index.js
View file @
5321652e
...
...
@@ -63,9 +63,7 @@ class Home extends Component {
async
init
()
{
const
userToken
=
this
.
getCookie
(
'userToken'
)
console
.
log
(
userToken
,
'cookietoken'
)
let
token
=
this
.
getQueryString
(
'token'
);
console
.
log
(
token
!==
''
||
typeof
userToken
!==
''
,
'123'
)
if
(
token
!==
''
||
typeof
userToken
!==
''
)
{
if
(
token
!==
''
)
{
request
.
defaults
.
headers
.
common
.
Authorization
=
`Bearer
${
token
}
`
...
...
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