@ -128,7 +128,7 @@ class ShixunsController < ApplicationController
page = params[:page] || 1
limit = params[:limit] || 10
offset = (page.to_i - 1) * limit
offset = (page.to_i - 1) * (limit.to_i)
order = params[:order] || "desc"
## 搜索关键字创建者、实训名称、院校名称
keyword = params[:search]
@ -296,10 +296,11 @@ class CoursesIndex extends Component{
componentDidMount(){
// this.updataleftNav()
this.historyArray = []
this.historyArray = [location.pathname];
this.props.history.listen( location => {
console.log(location)
this.historyArray.unshift(location.pathname)
console.log(location);
this.historyArray.unshift(location.pathname);
this.historyArray.length = 2;
//Do your stuff here
});