Browse Source

fix issue

tags/v1.22.2.2^2
zhoupzh 3 years ago
parent
commit
72c53266e2
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      templates/repo/debugjob/index.tmpl

+ 6
- 1
templates/repo/debugjob/index.tmpl View File

@@ -493,6 +493,7 @@
console.log({{.Tasks}})
const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;
let url={{.RepoLink}}
let redirect_to = {{$.Link}}
let getParam=getQueryVariable('debugListType')
let dropdownValue = getParam==='all'||getParam==='' ? '全部' : getParam
localStorage.setItem('all',location.href)
@@ -545,10 +546,14 @@
}else{
$.ajax({
type:"POST",
url:debugUrl+'restart',
url:debugUrl+'restart?redirect_to='+redirect_to,
data:$('#debugAgainForm-'+JobID).serialize(),
success:function(res){
if(res.WechatRedirectUrl){
window.location.href=WechatRedirectUrl
}
if(res.result_code==="0"){

if(res.job_id!==JobID){
location.reload()
}else{


Loading…
Cancel
Save