From e4ee208ae4474915f4e6d30ef40e1e14c6589be0 Mon Sep 17 00:00:00 2001 From: xinbinyan Date: Thu, 26 Oct 2023 17:46:57 +0800 Subject: [PATCH] update skip method --- packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx b/packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx index 6011c9dde..d6b3ceeb7 100644 --- a/packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx +++ b/packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import { useState } from 'react'; -import { useBack } from '@actiontech/shared/lib/hooks'; import { message } from 'antd5'; +import { useNavigate } from 'react-router-dom'; import { PageLayoutHasFixedHeaderStyleWrapper } from '@actiontech/shared/lib/styleWrapper/element'; import { PlanDetailRowStyleWrapper } from './style'; @@ -20,16 +20,15 @@ import EventEmitter from '../../../utils/EventEmitter'; const PlanDetail = () => { const { t } = useTranslation(); - - const { goBack } = useBack(); + const navigater = useNavigate(); const urlParams = useParams(); - const { projectName, projectArchive } = useCurrentProject(); + const { projectName, projectArchive, projectID } = useCurrentProject(); const [auditLoading, setAuditLoading] = useState(false); const [messageApi, contextMessageHolder] = message.useMessage(); const onSkipList = () => { - goBack(); + navigater(`/sqle/project/${projectID}/auditPlan`); }; const onAudit = () => {