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
0452c395
Commit
0452c395
authored
Aug 26, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
2534ea06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/App.js
+1
-1
src/common/HeaderBar/index.js
+3
-2
src/components/detail/index.js
+0
-1
No files found.
src/App.js
View file @
0452c395
...
...
@@ -46,7 +46,7 @@ class App extends Component {
this
.
props
.
setCurrentUser
(
this
.
transformUser
(
res
))
})
const
routeMatchRule
=
/binding-tel|forgot/
const
routeMatchRule
=
/binding-tel|forgot
|set-password
/
const
{
history
}
=
this
.
props
history
.
listen
(
location
=>
{
const
{
pathname
}
=
location
...
...
src/common/HeaderBar/index.js
View file @
0452c395
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
;
import
{
withRouter
}
from
'react-router-dom'
class
HeaderBar
extends
Component
{
constructor
(
props
)
{
...
...
@@ -17,7 +18,7 @@ class HeaderBar extends Component {
}
goShop
=
()
=>
{
location
.
replace
(
'/shopcart'
);
this
.
props
.
history
.
push
(
'/shopcart'
)
}
render
()
{
...
...
@@ -50,4 +51,4 @@ class HeaderBar extends Component {
}
};
export
default
HeaderBar
;
export
default
withRouter
(
HeaderBar
)
;
src/components/detail/index.js
View file @
0452c395
...
...
@@ -469,7 +469,6 @@ class Detail extends Component {
title
=
'课程详情'
arrow
=
{
true
}
cart
=
{
true
}
toHref
=
{
href
}
/
>
<
CallApp
className
=
'toapp'
/>
...
...
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