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
2c9fd43a
Commit
2c9fd43a
authored
Sep 02, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复页面重复刷新
parent
f5a61dd2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
permission.js
src/utils/permission.js
+0
-1
request.js
src/utils/request.js
+0
-1
No files found.
src/utils/permission.js
View file @
2c9fd43a
...
...
@@ -70,7 +70,6 @@ function intercept(to, from, next) {
// 无权限访问
if
(
projectRoutes
.
some
(
el
=>
el
==
to
.
path
)
||
accessPath
.
length
==
0
)
{
window
.
location
.
href
=
`
${
origin
}
/haoban-4/#/gic-error`
;
window
.
location
.
reload
();
}
else
{
next
(
accessPath
[
0
]);
}
...
...
src/utils/request.js
View file @
2c9fd43a
...
...
@@ -52,7 +52,6 @@ const request = (opt, params) => {
if
(
resp
.
code
==
notAuthCode
)
{
window
.
location
.
href
=
`
${
origin
}
/haoban-4/#/login`
;
window
.
location
.
reload
();
return
;
}
if
(
requestConfig
.
useIntercept
&&
resp
.
code
!=
succCode
)
{
...
...
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