Skip to content

Commit

Permalink
Merge pull request #33 from actiontech/fix_audit_plan_skip
Browse files Browse the repository at this point in the history
[fix](audit plan):update detail skip method to list
  • Loading branch information
LZS911 authored Oct 27, 2023
2 parents 3ca3423 + e4ee208 commit 135ee26
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/sqle/src/page/AuditPlan/PlanDetail/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -20,16 +20,15 @@ import EventEmitter from '../../../utils/EventEmitter';

const PlanDetail = () => {
const { t } = useTranslation();

const { goBack } = useBack();
const navigater = useNavigate();

const urlParams = useParams<PlanDetailUrlParams>();
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 = () => {
Expand Down

0 comments on commit 135ee26

Please sign in to comment.