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
39501fcf
Commit
39501fcf
authored
Jun 03, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmp
parent
5f544961
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
src/components/search/index.js
+2
-1
src/components/study/freeCourses/index.js
+1
-1
src/router.js
+1
-1
src/setupProxy.js
+6
-4
src/utils/proxy-config.js
+1
-1
No files found.
src/components/search/index.js
View file @
39501fcf
...
...
@@ -18,7 +18,8 @@ class Search extends PureComponent {
}
async
componentDidMount
()
{
const
data
=
await
api
.
get
(
`/m/live/free_list`
)
const
data
=
await
api
.
get
(
`/search/search_hot_word`
)
console
.
log
(
data
)
}
render
()
{
...
...
src/components/study/freeCourses/index.js
View file @
39501fcf
...
...
@@ -42,7 +42,7 @@ class FreeCourse extends PureComponent {
}
getFreeCourses
=
()
=>
{
return
api
.
get
(
`/m/free_course/
${
this
.
state
.
page
}
/
${
this
.
state
.
num
}
`
)
return
api
.
get
(
`/
api/
m/free_course/
${
this
.
state
.
page
}
/
${
this
.
state
.
num
}
`
)
}
getFreeLive
=
()
=>
{
...
...
src/router.js
View file @
39501fcf
...
...
@@ -29,7 +29,7 @@ const router = () => (
<
Route
path
=
'/my'
component
=
{
My
}
/
>
<
Route
path
=
'/courselist'
component
=
{
CourseList
}
/
>
<
Route
path
=
'/preferential'
component
=
{
Preferential
}
/
>
<
Route
path
=
'/
search
'
component
=
{
Search
}
/
>
<
Route
path
=
'/
looking
'
component
=
{
Search
}
/
>
<
Route
path
=
'/order'
component
=
{
Order
}
/
>
<
Route
path
=
'/detail'
component
=
{
Detail
}
/
>
<
Route
path
=
'/examination'
component
=
{
Examination
}
/
>
...
...
src/setupProxy.js
View file @
39501fcf
...
...
@@ -6,6 +6,7 @@ const target = 'http://fast-test.julyedu.com'
module
.
exports
=
function
(
app
)
{
/*
app.use(proxy(
'/api',
{
...
...
@@ -16,7 +17,9 @@ module.exports = function (app) {
}
})
)
/*app.use(proxy(
*/
/*
app.use(proxy(
config.home.development,
{
target,
...
...
@@ -25,9 +28,9 @@ module.exports = function (app) {
'^/api': ''
}
})
)*/
)
*/
/*
Object
.
keys
(
config
).
forEach
(
item
=>
{
app
.
use
(
proxy
(
config
[
item
][
'development'
],
{
...
...
@@ -40,7 +43,6 @@ module.exports = function (app) {
}
))
})
*/
};
...
...
src/utils/proxy-config.js
View file @
39501fcf
...
...
@@ -6,7 +6,7 @@ const config = {
proxy
:
{}
},
search
:
{
development
:
'/s'
,
development
:
'/s
earch
'
,
test
:
'https://search.julyedu.com'
,
production
:
'https://search.julyedu.com'
,
proxy
:
{}
...
...
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