From fc15154cae3d7c8f848acc22697eb454b07818fb Mon Sep 17 00:00:00 2001 From: xinbinyan Date: Mon, 23 Oct 2023 14:42:08 +0800 Subject: [PATCH] fix: go to rule list when in create rule page --- packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx b/packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx index 78e821b04..2237d3539 100644 --- a/packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx +++ b/packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx @@ -2,7 +2,6 @@ import { useTranslation } from 'react-i18next'; import { Space } from 'antd5'; import { useState } from 'react'; import { BasicButton, BasicResult, PageHeader } from '@actiontech/shared'; -import { useBack } from '@actiontech/shared/lib/hooks'; import { useForm } from 'antd5/es/form/Form'; import { useNavigate } from 'react-router-dom'; @@ -23,7 +22,6 @@ import audit_plan from '@actiontech/shared/lib/api/sqle/service/audit_plan'; const CreatePlan = () => { const { t } = useTranslation(); const navigater = useNavigate(); - const { goBack } = useBack(); const { projectName, projectID } = useCurrentProject(); const [submitLoading, setSubmitLoading] = useState(false); @@ -32,7 +30,7 @@ const CreatePlan = () => { const onSkipList = () => { onReset(); - goBack(); + navigater(`/sqle/project/${projectID}/auditPlan`); }; const onReset = () => {