Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
baiguangyao
mr-julyedu
Commits
5ec341f7
Commit
5ec341f7
authored
May 27, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改router
parent
7184ab8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
src/router.js
+16
-16
No files found.
src/router.js
View file @
5ec341f7
...
...
@@ -22,23 +22,23 @@ import Passport from './components/passport'
const
router
=
()
=>
(
<
Router
>
<
Switch
>
<
Route
exact
path
=
"/"
component
=
{
Index
}
><
/Route
>
<
Route
path
=
"/index"
component
=
{
Index
}
><
/Route
>
<
Route
path
=
'/classify'
component
=
{
Classify
}
><
/Route
>
<
Route
path
=
'/study'
component
=
{
Study
}
><
/Route
>
<
Route
path
=
'/my'
component
=
{
My
}
><
/Route
>
<
Route
path
=
'/courselist'
component
=
{
CourseList
}
><
/Route
>
<
Route
path
=
'/preferential'
component
=
{
Preferential
}
><
/Route
>
<
Route
path
=
'/search'
component
=
{
Search
}
><
/Route
>
<
Route
path
=
'/order'
component
=
{
Order
}
><
/Route
>
<
Route
path
=
'/detail'
component
=
{
Detail
}
><
/Route
>
<
Route
path
=
'/examination'
component
=
{
Examination
}
><
/Route
>
<
Route
path
=
'/exchange-coupons'
component
=
{
ExchangeCoupons
}
><
/Route
>
<
Route
path
=
'/use-coupon'
component
=
{
UseCoupon
}
><
/Route
>
<
Route
exact
path
=
"/"
component
=
{
Index
}
/
>
<
Route
path
=
"/index"
component
=
{
Index
}
/
>
<
Route
path
=
'/classify'
component
=
{
Classify
}
/
>
<
Route
path
=
'/study'
component
=
{
Study
}
/
>
<
Route
path
=
'/my'
component
=
{
My
}
/
>
<
Route
path
=
'/courselist'
component
=
{
CourseList
}
/
>
<
Route
path
=
'/preferential'
component
=
{
Preferential
}
/
>
<
Route
path
=
'/search'
component
=
{
Search
}
/
>
<
Route
path
=
'/order'
component
=
{
Order
}
/
>
<
Route
path
=
'/detail'
component
=
{
Detail
}
/
>
<
Route
path
=
'/examination'
component
=
{
Examination
}
/
>
<
Route
path
=
'/exchange-coupons'
component
=
{
ExchangeCoupons
}
/
>
<
Route
path
=
'/use-coupon'
component
=
{
UseCoupon
}
/
>
{
/*<Route path='/orderinfo' component={OrderInfo}></Route>*/
}
<
Route
path
=
'/shopcard'
component
=
{
ShopCard
}
><
/Route
>
<
Route
path
=
'/bargain-middle-page'
component
=
{
BargainMiddlePage
}
><
/Route
>
<
Route
path
=
'/passport'
component
=
{
Passport
}
><
/Route
>
<
Route
path
=
'/shopcard'
component
=
{
ShopCard
}
/
>
<
Route
path
=
'/bargain-middle-page'
component
=
{
BargainMiddlePage
}
/
>
<
Route
path
=
'/passport'
component
=
{
Passport
}
/
>
<
/Switch
>
<
/Router
>
)
...
...
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