Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
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
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
wangqinghua
smart
Commits
d7bd09f4
Commit
d7bd09f4
authored
Jun 19, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由重定向
parent
6f6fc27e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.route.ts
src/main/webapp/app/app.route.ts
+2
-2
No files found.
src/main/webapp/app/app.route.ts
View file @
d7bd09f4
...
@@ -45,7 +45,7 @@ import {BConfigComponent} from './business/b-config/b-config.component';
...
@@ -45,7 +45,7 @@ import {BConfigComponent} from './business/b-config/b-config.component';
import
{
SignalComponent
}
from
'./shared/signal/signal.component'
;
import
{
SignalComponent
}
from
'./shared/signal/signal.component'
;
export
const
route
:
Routes
=
[
export
const
route
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'app/main/home'
,
pathMatch
:
'
full'
},
{
path
:
''
,
redirectTo
:
'app/main/home'
,
pathMatch
:
'
prefix'
},
//空路由定向
{
{
path
:
'app'
,
component
:
AppComponent
,
path
:
'app'
,
component
:
AppComponent
,
children
:
[
children
:
[
...
@@ -97,5 +97,5 @@ export const route: Routes = [
...
@@ -97,5 +97,5 @@ export const route: Routes = [
},
},
]
]
},
},
{
path
:
'*
'
,
component
:
AppComponent
,
canActivate
:
[
LoginGuard
]},
{
path
:
'*
*'
,
redirectTo
:
'app/main/home'
,
pathMatch
:
'full'
},
//未找到的路由 重定向
];
];
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