diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 64fce578f..3b6ce54aa 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -134,6 +134,7 @@ func GetFileNoteBookInfo(ctx *context.APIContext) { } else{ ctx.JSON(http.StatusOK, map[string]interface{}{ "code": 0, + "projectName":setting.FileNoteBook.ProjectName, "specCpu": specCPU, "specGpu": specGpu, "specNpu": specNPUCD, diff --git a/web_src/vuepages/apis/modules/notobook.js b/web_src/vuepages/apis/modules/notobook.js index 231036f81..3b501976c 100644 --- a/web_src/vuepages/apis/modules/notobook.js +++ b/web_src/vuepages/apis/modules/notobook.js @@ -20,7 +20,7 @@ export const createNotebook = (data) => { }); }; -// Notebook新建页面需要的信息 +// Notebook获取云脑I调试任务状态 export const getCb1Notebook = (path,jobid) => { return service({ url: `/api/v1/${path}/cloudbrain/${jobid}`, @@ -29,7 +29,7 @@ export const getCb1Notebook = (path,jobid) => { }); }; -// Notebook新建页面需要的信息 +// Notebook获取云脑I调试任务状态 export const getCb2Notebook = (path,jobid) => { return service({ url: `/api/v1/${path}/modelarts/notebook/${jobid}`, @@ -37,3 +37,12 @@ export const getCb2Notebook = (path,jobid) => { params: {}, }); }; + +export const stopNotebook = (url) => { + return service({ + url: url, + method: "post", + data, + params: {}, + }); + }; \ No newline at end of file diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue index 88f899662..1328c58c1 100644 --- a/web_src/vuepages/pages/notebook/debug/index.vue +++ b/web_src/vuepages/pages/notebook/debug/index.vue @@ -116,10 +116,10 @@