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}}