From 2aa174a4906a6af3063997a6f3361af6ebe36b43 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 25 Nov 2021 10:09:56 +0800 Subject: [PATCH] fix issue --- templates/repo/modelarts/trainjob/show.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 6a36ad287..700f7d66f 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -657,7 +657,7 @@ td, th { } } - function downloadModelFile(version_name,parentDir,filename){ + function downloadModelFile(version_name,filename){ $.get(`/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}/model_download?version_name=${version_name}&file_name=${filename}`, (data) => { console.log(data) @@ -680,10 +680,10 @@ td, th { html += "" html += "" if(data.Dirs[i].IsDir){ - html += `` + html += `` html += "" + data.Dirs[i].FileName + "" }else{ - html += `` + html += `` html += "" + data.Dirs[i].FileName + "" } html += ''