Skip to content

Commit

Permalink
fix(admin): 代码编辑器中流水线帮助文档打不开
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Mar 18, 2023
1 parent 8392dc3 commit 5d0a7fb
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/admin/src/pages/Code/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,6 @@ export default function () {
{
key: 'editPipelineInfo',
label: <PipelineModal mode="edit" trigger={<a>编辑信息</a>} onFinish={(vals) => { console.log(vals) }} initialValues={currObj} />
},
{
key: "helpPipeline",
label: "帮助文档",
onClick: () => {
window.open("https://vanblog.mereith.com/features/pipeline.html", "_blank")
}
}
] : []),
...(isFolder
Expand Down Expand Up @@ -331,7 +324,11 @@ export default function () {
<Button
key="docBtn"
onClick={() => {
window.open('https://vanblog.mereith.com/feature/advance/customPage.html');
if (type == "pipeline") {
window.open("https://vanblog.mereith.com/features/pipeline.html", "_blank")
} else {
window.open('https://vanblog.mereith.com/feature/advance/customPage.html', "_blank");
}
}}
>
文档
Expand Down

0 comments on commit 5d0a7fb

Please sign in to comment.