|
|
|
@@ -5,6 +5,7 @@ import { formatDate } from '@/utils/date'; |
|
|
|
import { Link } from '@umijs/max'; |
|
|
|
import { Col, Row } from 'antd'; |
|
|
|
import ServiceRunStatusCell from '../ModelDeployStatusCell'; |
|
|
|
import styles from './index.less'; |
|
|
|
|
|
|
|
type BasicInfoProps = { |
|
|
|
info?: ServiceVersionData; |
|
|
|
@@ -15,7 +16,7 @@ function BasicInfo({ info }: BasicInfoProps) { |
|
|
|
|
|
|
|
// 格式化环境变量 |
|
|
|
const formatEnvText = () => { |
|
|
|
if (!info?.env_variables) { |
|
|
|
if (!info?.env_variables || Object.keys(info.env_variables).length === 0) { |
|
|
|
return '--'; |
|
|
|
} |
|
|
|
const env = info.env_variables; |
|
|
|
@@ -53,7 +54,7 @@ function BasicInfo({ info }: BasicInfoProps) { |
|
|
|
}; |
|
|
|
|
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div className={styles['basic-info']}> |
|
|
|
<Row gutter={40} style={{ marginBottom: '20px' }}> |
|
|
|
<Col span={10}> |
|
|
|
<LabelValue label="服务名称:" value={info?.service_name}></LabelValue> |
|
|
|
|