Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into onigin/ysl_a

dev_cs
杨树林 6 years ago
commit 9c30d743af

@ -128,7 +128,7 @@ class ShixunsController < ApplicationController
page = params[:page] || 1 page = params[:page] || 1
limit = params[:limit] || 10 limit = params[:limit] || 10
offset = (page.to_i - 1) * limit offset = (page.to_i - 1) * (limit.to_i)
order = params[:order] || "desc" order = params[:order] || "desc"
## 搜索关键字创建者、实训名称、院校名称 ## 搜索关键字创建者、实训名称、院校名称
keyword = params[:search] keyword = params[:search]

@ -296,10 +296,11 @@ class CoursesIndex extends Component{
componentDidMount(){ componentDidMount(){
// this.updataleftNav() // this.updataleftNav()
this.historyArray = [] this.historyArray = [location.pathname];
this.props.history.listen( location => { this.props.history.listen( location => {
console.log(location) console.log(location);
this.historyArray.unshift(location.pathname) this.historyArray.unshift(location.pathname);
this.historyArray.length = 2; this.historyArray.length = 2;
//Do your stuff here //Do your stuff here
}); });

Loading…
Cancel
Save