Browse Source

提交代码

tags/v1.22.12.1^2
ychao_1983 3 years ago
parent
commit
47419502c7
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      routers/repo/grampus.go

+ 2
- 5
routers/repo/grampus.go View File

@@ -1522,11 +1522,8 @@ func GrampusNotebookDebug(ctx *context.Context) {
return
}
if len(result.JobInfo.Tasks) > 0 {
if ctx.Cloudbrain.ComputeResource == models.NPUResource {
ctx.Redirect(result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
} else {
ctx.Redirect("http://192.168.203.154/" + result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
}

ctx.Redirect(result.JobInfo.Tasks[0].Url + "?token=" + result.JobInfo.Tasks[0].Token)
return
}
ctx.NotFound("Can not find the job.", nil)


Loading…
Cancel
Save