diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index edfa2e4b1..611b0d9d1 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -256,7 +256,7 @@ func NotebookShow(ctx *context.Context) { result.LatestUpdateTime = time.Unix(int64(result.UpdateAt/1000), 0).Format("2006-01-02 15:04:05") } - var datasetDownloadLink string + datasetDownloadLink := "-" if ctx.IsSigned { if task.Uuid != "" && task.UserID == ctx.User.ID { attachment, err := models.GetAttachmentByUUID(task.Uuid) @@ -265,7 +265,7 @@ func NotebookShow(ctx *context.Context) { } } } - + ctx.Data["datasetDownloadLink"] = datasetDownloadLink ctx.Data["task"] = task ctx.Data["jobID"] = jobID