ExitPage.tsx 966 字节
Newer Older
R
Rongfeng Fu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
import { message, Card } from 'antd';
import { CopyOutlined } from '@ant-design/icons';
import copy from 'copy-to-clipboard';
import styles from './index.less';

export default function ExitPage() {
  const command = 'obd web';

  const handleCopy = () => {
    copy(command);
    message.success('复制成功');
  };

  return (
    <Card className={styles.exitPage}>
      <h1
        data-aspm-click="c307511.d317289"
        data-aspm-desc="退出-部署程序已经退出"
        data-aspm-param={``}
        data-aspm-expo
      >
        部署程序已经退出!
      </h1>
      <div
        className={styles.exitPageText}
        data-aspm-click="c307511.d317288"
        data-aspm-desc="退出-再次启动提示"
        data-aspm-param={``}
        data-aspm-expo
      >
        如需再次启动,请前往中控服务器执行
        <a>
          {command} <CopyOutlined onClick={handleCopy} />
        </a>
      </div>
    </Card>
  );
}