Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
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
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
442c94cc
Commit
442c94cc
authored
Jun 11, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
3446cf24
Pipeline
#15282
failed with stages
in 36 seconds
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
workspace.xml
.idea/workspace.xml
+0
-0
instance.js
src/utils/instance.js
+4
-1
No files found.
.idea/workspace.xml
View file @
442c94cc
This diff is collapsed.
Click to expand it.
src/utils/instance.js
View file @
442c94cc
...
...
@@ -52,7 +52,7 @@ export const createAPI = (baseURL) => {
// console.log(response)
if
(
!
response
||
!
response
.
data
)
{
//
response.code === 'idt-core-505' && (window.location.href = '/login')
response
.
code
===
'idt-core-505'
&&
(
window
.
location
.
href
=
'/login'
)
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
};
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
...
...
@@ -66,6 +66,9 @@ export const createAPI = (baseURL) => {
}
localStorage
.
setItem
(
"token"
,
response
.
data
.
token
);
}
if
(
response
&&
response
.
data
&&
response
.
data
.
leftOperateBar
)
{
localStorage
.
setItem
(
"menu"
,
JSON
.
stringify
(
response
.
data
.
leftOperateBar
));
}
if
(
response
.
data
)
{
return
response
.
data
;
...
...
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