From 6f68574bca6256e5c57f1ee6197eed7b242e317c Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 21 Dec 2021 08:40:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9commit=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/js/components/Contributors.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web_src/js/components/Contributors.vue b/web_src/js/components/Contributors.vue index 1384b4e49..cd85f6ae9 100644 --- a/web_src/js/components/Contributors.vue +++ b/web_src/js/components/Contributors.vue @@ -45,6 +45,8 @@ export default { data() { return { url:'', + url_infor:'', + href_:'', contributors_list:[], contributors_list_page:[], currentPage:1, @@ -56,7 +58,7 @@ export default { methods: { 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.totalNum = this.contributors_list.length this.contributors_list_page = this.contributors_list.slice(0,this.pageSize) @@ -78,6 +80,10 @@ created(){ this.url = url; let strIndex = this.url.indexOf("contributors") 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() },