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
5dc5baca
Commit
5dc5baca
authored
Jun 24, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre
parent
ca982d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
src/components/study/index.js
+2
-14
No files found.
src/components/study/index.js
View file @
5dc5baca
...
...
@@ -13,15 +13,7 @@ import PrivateRoute from '@/router/privateRoute'
class
Study
extends
Component
{
state
=
{
position
:
{
}
}
list
;
storeScrollPosition
(
tab
){
position
:
{}
}
render
()
{
...
...
@@ -42,15 +34,11 @@ class Study extends Component {
>
免费课程
<
/NavLink
>
<
/div
>
<
/div
>
<
div
className
=
"study-container"
ref
=
{
el
=>
this
.
list
=
el
}
>
<
div
className
=
"study-container"
>
<
Switch
>
<
Redirect
exact
from
=
'/study'
to
=
'study/my-course'
/>
<
Route
path
=
{
`
${
this
.
props
.
match
.
path
}
/my-course`
}
component
=
{
MyCourses
}
/
>
{
/*<PrivateRoute path={`${this.props.match.path}/my-course`} component={MyCourses}/>*/
}
<
Route
path
=
{
`
${
this
.
props
.
match
.
path
}
/free-course`
}
component
=
{
FreeCourses
}
/
>
{
/*<Route path={`${this.props.match.path}/my-course`} render={props => {
<MyCourses storeScrollPosition={this.storeScrollPosition}/>
}}/>*/
}
<
/Switch
>
<
/div
>
<
/section
>
...
...
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