From bc4119da15e7e406c6a213a83fcc23581f0f64e6 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 2 Jun 2022 16:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/convertIndex.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 007a95e3f..27c58c86a 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -376,8 +376,9 @@ } function loadModelFile(modelId){ console.log("modelId=" + modelId); + $('#choice_file').dropdown('clear') if(modelId ==null || modelId ==""){ - $('#choice_file').dropdown('clear') + console.log("modelId is null"); }else{ $.get(`${repolink}/modelmanage/query_modelfile_for_predict?ID=${modelId}`, (data) => { const n_length = data.length