|
@@ -8,6 +8,7 @@ import {
|
|
useParams,
|
|
useParams,
|
|
useRequest,
|
|
useRequest,
|
|
useSearchParams,
|
|
useSearchParams,
|
|
|
|
+ useNavigate,
|
|
} from '@umijs/max';
|
|
} from '@umijs/max';
|
|
import {
|
|
import {
|
|
queryPsrExcel,
|
|
queryPsrExcel,
|
|
@@ -19,6 +20,7 @@ import {
|
|
import SaveModal from './components/saveOtherModal';
|
|
import SaveModal from './components/saveOtherModal';
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
const PSRDetail = () => {
|
|
const PSRDetail = () => {
|
|
|
|
+ const navigate = useNavigate();
|
|
const params = useParams();
|
|
const params = useParams();
|
|
const location = useLocation();
|
|
const location = useLocation();
|
|
const { id: projectId } = params;
|
|
const { id: projectId } = params;
|
|
@@ -288,7 +290,9 @@ const PSRDetail = () => {
|
|
return (
|
|
return (
|
|
<PageContent>
|
|
<PageContent>
|
|
<div className={styles.titleDev}>
|
|
<div className={styles.titleDev}>
|
|
- <Button type="primary">返回</Button>
|
|
|
|
|
|
+ <Button type="primary" onClick={() => navigate(-1)}>
|
|
|
|
+ 返回
|
|
|
|
+ </Button>
|
|
<span className={styles.title}>{project_name}</span>
|
|
<span className={styles.title}>{project_name}</span>
|
|
</div>
|
|
</div>
|
|
<Tabs
|
|
<Tabs
|