From 4d96a3dff25c859bc8d726ff04b288f30d562f55 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 22 Dec 2021 12:06:03 +0800 Subject: [PATCH] fix issue --- templates/repo/debugjob/index.tmpl | 15 ++++++++++++--- templates/repo/header.tmpl | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index 66bc37d6a..19c2e6a94 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -481,9 +481,19 @@ // 调试和评分新开窗口 const {AppSubUrl, StaticUrlPrefix, csrf} = window.config; let url={{.RepoLink}} - let getParam=location.search.split('?debugListType=').pop() + let getParam=getQueryVariable('debugListType') let dropdownValue = getParam==='all'||getParam==='' ? '全部' : getParam localStorage.setItem('all',location.href) + function getQueryVariable(variable) + { + let query = window.location.search.substring(1); + let vars = query.split("&"); + for (let i=0;i {{end}} + {{if .Permission.CanRead $.UnitTypeModelManage}} + + + {{.i18n.Tr "repo.model_manager"}} + + {{end}} {{if .Permission.CanRead $.UnitTypeCloudBrain}}