Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
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
fengzhaoyu
mingPayPc
Commits
369a35a5
Commit
369a35a5
authored
Jul 05, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
79ccc182
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
main.js
src/main.js
+1
-0
router.js
src/router.js
+1
-4
No files found.
src/main.js
View file @
369a35a5
...
@@ -42,6 +42,7 @@ router.beforeEach(function (to, from, next) {
...
@@ -42,6 +42,7 @@ router.beforeEach(function (to, from, next) {
if
(
sessionStorage
.
getItem
(
'userId'
))
{
if
(
sessionStorage
.
getItem
(
'userId'
))
{
next
()
next
()
}
else
{
}
else
{
localStorage
.
setItem
(
'orgId'
,
to
.
redirectedFrom
.
substr
(
1
))
config
.
ddconfig
().
then
((
res
)
=>
{
config
.
ddconfig
().
then
((
res
)
=>
{
if
(
res
===
'no'
)
{
if
(
res
===
'no'
)
{
next
({
name
:
'configError'
})
next
({
name
:
'configError'
})
...
...
src/router.js
View file @
369a35a5
...
@@ -98,10 +98,7 @@ export default new Router({
...
@@ -98,10 +98,7 @@ export default new Router({
},
},
{
{
path
:
'/*'
,
path
:
'/*'
,
redirect
:
'/dashboard'
,
redirect
:
'/dashboard'
beforeEnter
(
to
,
from
,
next
)
{
console
.
log
(
to
,
from
,
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