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