import React, { FC } from 'react'; import styles from './index.less'; import { RedoOutlined } from '@ant-design/icons'; import { useParams } from 'umi'; import { message } from 'antd'; interface PageProps { } const RestartService: FC = ({ }) => { const urlParams = useParams(); let sysData = localStorage.getItem(`${urlParams?.fileType}`); let info = sysData ? JSON.parse(sysData) : null; return
{ message.success('重启服务成功!') localStorage.setItem(`${urlParams?.fileType}`, JSON.stringify({ ...info, restartService: true })) }} >
重启服务
} export default RestartService;