Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
2e4c266b
Commit
2e4c266b
authored
Aug 21, 2019
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由跳转问题
parent
3847ca83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
prod.config.js
src/config/prod.config.js
+0
-2
init.service.js
src/service/init.service.js
+6
-2
No files found.
src/config/prod.config.js
View file @
2e4c266b
// todo: 测试环境部署的时候对xyqb.com进行替换,先改成这样进行测试,上线改回来
// const sapi = '//recruit.xyqb.com'
const
sapi
=
'
//api.stantoo.com
'
const
sapi
=
'
//api.stantoo.com
'
export
{
export
{
...
...
src/service/init.service.js
View file @
2e4c266b
...
@@ -3,10 +3,14 @@ export default{
...
@@ -3,10 +3,14 @@ export default{
init
:
function
(
router
)
{
init
:
function
(
router
)
{
router
.
beforeEach
((
to
,
form
,
next
)
=>
{
router
.
beforeEach
((
to
,
form
,
next
)
=>
{
let
token
=
localstorage
.
get
(
'
token
'
)
let
token
=
localstorage
.
get
(
'
token
'
)
if
(
!
token
&&
to
.
name
!==
'
login
'
&&
to
.
name
!==
'
text
'
)
{
if
(
to
.
name
==
'
login
'
||
to
.
name
==
'
text
'
||
to
.
name
==
'
sweepCode
'
){
next
()
return
}
if
(
!
token
){
window
.
location
.
href
=
`
${
window
.
location
.
origin
}
/login`
window
.
location
.
href
=
`
${
window
.
location
.
origin
}
/login`
return
return
}
}
next
()
next
()
})
})
}
}
...
...
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