From 4f1d607a55629202dfad9ede415a838dbb961c1c Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 11 Nov 2021 20:45:32 +0800 Subject: [PATCH] fix issue #761 --- web_src/js/components/Contributors.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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() },