import { intl } from '@/utils/intl'; import { message, Card, Empty } from 'antd'; import { CopyOutlined } from '@ant-design/icons'; import copy from 'copy-to-clipboard'; import { getLocale } from 'umi'; import EnStyles from './indexEn.less'; import ZhStyles from './indexZh.less'; const locale = getLocale(); const styles = locale === 'zh-CN' ? ZhStyles : EnStyles; export default function ExitPage() { const command = 'obd web'; const handleCopy = () => { copy(command); message.success( intl.formatMessage({ id: 'OBD.pages.components.ExitPage.CopiedSuccessfully', defaultMessage: '复制成功', }), ); }; return (

{intl.formatMessage({ id: 'OBD.pages.components.ExitPage.TheDeploymentProgramHasExited', defaultMessage: '部署程序已经退出!', })}

{intl.formatMessage({ id: 'OBD.pages.components.ExitPage.ToStartAgainGoTo', defaultMessage: '如需再次启动,请前往中控服务器执行', })} {command}
); }