diff --git a/src/forge/DevOps/cardList/index.jsx b/src/forge/DevOps/cardList/index.jsx index d80a0a0fe..b1e857961 100644 --- a/src/forge/DevOps/cardList/index.jsx +++ b/src/forge/DevOps/cardList/index.jsx @@ -14,6 +14,10 @@ function CardDevops(props) { const [list, setList] = useState([]) const [ visible , setVisible ] = useState(false); +let settings = JSON.parse(localStorage.chromesetting); +let pipelineUrl = settings && settings.common.pipeline; + + useEffect(() => { const { author, name } = project || {} document.title = `流水线-${author && author.name}/${name}`; @@ -66,7 +70,7 @@ function CardDevops(props) { runPipeline( owner, projectsId, { ref: item.branch, workflow: item.file_name.split('/').pop() }).then(res => { if(res && res.status === 0) { message.success('运行成功!') - window.open(`http://localhost:8000/devops/${owner}/${projectsId}/${item.id}`) + window.open(`${ pipelineUrl }/devops/${owner}/${projectsId}/${item.id}`) } }) } @@ -112,7 +116,7 @@ function CardDevops(props) {