Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
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
office
haoban-4
Commits
ff1f554e
Commit
ff1f554e
authored
Sep 21, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改接口 header 参数
parent
387fcb67
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
index.html
dist/index.html
+0
-0
app.8126f8af.js
dist/js/app.8126f8af.js
+0
-0
permission.js
src/utils/permission.js
+2
-2
No files found.
dist/index.html
View file @
ff1f554e
This diff is collapsed.
Click to expand it.
dist/js/app.
bc589e54
.js
→
dist/js/app.
8126f8af
.js
View file @
ff1f554e
This diff is collapsed.
Click to expand it.
src/utils/permission.js
View file @
ff1f554e
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-31 11:41:34
* @LastEditors: 无尘
* @LastEditTime: 2020-09-21 11:3
1:23
* @LastEditTime: 2020-09-21 11:3
2:52
*/
import
{
request
}
from
'./request.js'
;
import
axios
from
'axios'
;
...
...
@@ -95,7 +95,7 @@ let permission = function(config) {
if
(
path
.
indexOf
(
'/login'
)
==
-
1
&&
path
.
indexOf
(
'/gic-error'
)
==
-
1
)
{
Object
.
assign
(
axios
.
defaults
.
headers
.
common
,
{
project
:
projectPath
,
route
:
hashName
.
includes
(
'?'
)
?
hashName
.
match
(
/
(?<
=
\#\/)
.*
?(?=\?)
/
)[
0
]
:
hashName
.
match
(
/
(?<
=
\#\/)
.*/
)
route
:
hashName
.
includes
(
'?'
)
?
hashName
.
match
(
/
(?<
=
\#\/)
.*
?(?=\?)
/
)[
0
]
:
hashName
.
match
(
/
(?<
=
\#\/)
.*/
)
[
0
]
});
await
getGicMenu
();
}
...
...
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