diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go index e30e6371f..41f1f88bc 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -268,6 +268,7 @@ func MilestoneIssuesAndPulls(ctx *context.Context) { ctx.Data["CanWriteIssues"] = ctx.Repo.CanWriteIssuesOrPulls(false) ctx.Data["CanWritePulls"] = ctx.Repo.CanWriteIssuesOrPulls(true) + ctx.Data["PageIsIssueList"] = true ctx.HTML(200, tplMilestoneIssues) } diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index d2a094bc8..1578e2f28 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -274,7 +274,7 @@ func NotebookDel(ctx *context.Context) { return } - if task.Status != string(models.JobStopped) { + if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped){ log.Error("the job(%s) has not been stopped", task.JobName) ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped")) return diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 34c3a3121..08bf3e825 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -337,7 +337,8 @@ {{end}}
- 全部 {{svg "octicon-chevron-right" 16}} + + 全部 {{svg "octicon-chevron-right" 16}}
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() },