diff --git a/web_src/js/components/Contributors.vue b/web_src/js/components/Contributors.vue index 2446e0bed..1384b4e49 100644 --- a/web_src/js/components/Contributors.vue +++ b/web_src/js/components/Contributors.vue @@ -3,9 +3,9 @@

@@ -56,7 +56,7 @@ export default { methods: { getContributorsList(){ - this.$axios.get(this.url+'/contributors/list').then((res)=>{ + this.$axios.get(this.url+'/list').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) @@ -74,7 +74,10 @@ watch: { }, created(){ - this.url=document.head.querySelector("[property~='og:url'][content]").content + const url = window.location.pathname; + this.url = url; + let strIndex = this.url.indexOf("contributors") + this.url_code = this.url.substr(0,strIndex) this.getContributorsList() },