|
|
|
@@ -52,30 +52,32 @@ function ServiceVersionInfo() { |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
if (versionInfo?.run_state === ServiceRunStatus.Running && versionInfo?.page_path) { |
|
|
|
tabItems.push({ |
|
|
|
key: ModelDeploymentTabKey.Predict, |
|
|
|
label: '预测', |
|
|
|
icon: <KFIcon type="icon-yuce" />, |
|
|
|
children: ( |
|
|
|
<div style={{ height: '100%', width: '100%' }}> |
|
|
|
<FullScreenFrame url={versionInfo?.page_path}></FullScreenFrame> |
|
|
|
</div> |
|
|
|
), |
|
|
|
}); |
|
|
|
} |
|
|
|
if (versionInfo?.run_state === ServiceRunStatus.Running) { |
|
|
|
if (versionInfo?.page_path) { |
|
|
|
tabItems.push({ |
|
|
|
key: ModelDeploymentTabKey.Predict, |
|
|
|
label: '预测', |
|
|
|
icon: <KFIcon type="icon-yuce" />, |
|
|
|
children: ( |
|
|
|
<div style={{ height: '100%', width: '100%' }}> |
|
|
|
<FullScreenFrame url={versionInfo?.page_path}></FullScreenFrame> |
|
|
|
</div> |
|
|
|
), |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
if (versionInfo?.doc_path) { |
|
|
|
tabItems.push({ |
|
|
|
key: ModelDeploymentTabKey.Guide, |
|
|
|
label: '调用指南', |
|
|
|
icon: <KFIcon type="icon-tiaoyongzhinan" />, |
|
|
|
children: ( |
|
|
|
<div style={{ height: '100%', width: '100%' }}> |
|
|
|
<FullScreenFrame url={versionInfo?.doc_path}></FullScreenFrame> |
|
|
|
</div> |
|
|
|
), |
|
|
|
}); |
|
|
|
if (versionInfo?.doc_path) { |
|
|
|
tabItems.push({ |
|
|
|
key: ModelDeploymentTabKey.Guide, |
|
|
|
label: '调用指南', |
|
|
|
icon: <KFIcon type="icon-tiaoyongzhinan" />, |
|
|
|
children: ( |
|
|
|
<div style={{ height: '100%', width: '100%' }}> |
|
|
|
<FullScreenFrame url={versionInfo?.doc_path}></FullScreenFrame> |
|
|
|
</div> |
|
|
|
), |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
tabItems.push({ |
|
|
|
|