| @@ -45,6 +45,8 @@ export default { | |||||
| data() { | data() { | ||||
| return { | return { | ||||
| url:'', | url:'', | ||||
| url_infor:'', | |||||
| href_:'', | |||||
| contributors_list:[], | contributors_list:[], | ||||
| contributors_list_page:[], | contributors_list_page:[], | ||||
| currentPage:1, | currentPage:1, | ||||
| @@ -56,7 +58,7 @@ export default { | |||||
| methods: { | methods: { | ||||
| getContributorsList(){ | getContributorsList(){ | ||||
| this.$axios.get(this.url+'/list').then((res)=>{ | |||||
| this.$axios.get(this.url+'/list?'+this.url_infor).then((res)=>{ | |||||
| this.contributors_list = res.data.contributor_info | this.contributors_list = res.data.contributor_info | ||||
| this.totalNum = this.contributors_list.length | this.totalNum = this.contributors_list.length | ||||
| this.contributors_list_page = this.contributors_list.slice(0,this.pageSize) | this.contributors_list_page = this.contributors_list.slice(0,this.pageSize) | ||||
| @@ -78,6 +80,10 @@ created(){ | |||||
| this.url = url; | this.url = url; | ||||
| let strIndex = this.url.indexOf("contributors") | let strIndex = this.url.indexOf("contributors") | ||||
| this.url_code = this.url.substr(0,strIndex) | this.url_code = this.url.substr(0,strIndex) | ||||
| this.href_ = window.location.href; | |||||
| let index = this.href_.indexOf("?") | |||||
| this.url_infor = this.href_.substring(index+1,this.href_.length) | |||||
| this.getContributorsList() | this.getContributorsList() | ||||
| }, | }, | ||||