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
a2418319
Commit
a2418319
authored
Apr 27, 2019
by
baiguangyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由冲突
parent
08b32f23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletions
+46
-1
.history/src/router_20190427100556.js
+46
-0
src/router.js
+0
-1
No files found.
.history/src/router_20190427100556.js
0 → 100644
View file @
a2418319
import
React
from
'react'
;
import
{
BrowserRouter
as
Router
,
Switch
,
Route
}
from
'react-router-dom'
;
import
Menu
from
'./menu'
;
import
Index
from
'./components/Index'
;
import
Classify
from
'./components/classify'
;
import
Study
from
'./components/study'
;
import
My
from
'./components/my'
;
import
CourseList
from
'./components/classify/courselist'
;
import
Order
from
'./components/order/index'
;
import
Preferential
from
'./components/preferential/index'
;
import
Search
from
'./components/search/index'
import
Detail
from
'./components/detail/index'
import
Examination
from
'./components/examination'
import
ExchangeCoupons
from
'./components/coupons/exchange-coupons'
import
UseCoupon
from
'./components/coupons/use-coupons'
import
OrderInfo
from
'./components/order/orderinfo'
;
const
router
=
(
props
)
=>
(
<
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
path
=
'/orderinfo'
component
=
{
OrderInfo
}
><
/Route
>
<
/Switch
>
<
Menu
/>
<
/Router
>
)
export
default
router
;
\ No newline at end of file
src/router.js
View file @
a2418319
...
...
@@ -7,7 +7,6 @@ import Classify from './components/classify';
import
Study
from
'./components/study'
;
import
My
from
'./components/my'
;
import
CourseList
from
'./components/classify/courselist'
;
import
Search
from
'./components/search/index'
;
import
Order
from
'./components/order/index'
;
import
Preferential
from
'./components/preferential/index'
;
import
Search
from
'./components/search/index'
...
...
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