Browse Source

Merge pull request '#761 代码/贡献者面包屑点击后应跳转回代码仓页面' (#790) from fix-224 into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/790
Reviewed-by: A00老虎 <openihu@noreply.localhost>
tags/v1.21.12.1
A00老虎 3 years ago
parent
commit
e6795978a0
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      web_src/js/components/Contributors.vue

+ 7
- 4
web_src/js/components/Contributors.vue View File

@@ -3,9 +3,9 @@
<div class="row git-user-content">
<h3 class="ui header">
<div class="ui breadcrumb">
<a class="section" href="/">代码</a>
<a class="section" :href="url_code">代码</a>
<div class="divider"> / </div>
<div class="active section" >贡献者({{totalNum}})</div>
<div class="active section" >贡献者&nbsp;({{totalNum}})</div>
</div>
</h3>
<div class="ui horizontal relaxed list">
@@ -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()
},


Loading…
Cancel
Save