Skip to content

Commit

Permalink
fix: eslint 校验问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
EmbraceAn committed Nov 25, 2024
1 parent 8f55328 commit 74abde5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/apis/task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
ResponseData,
TableRequestParam,
TableResponseData,
TGetTimeLineRuntimeMessage,
// TGetTimeLineRuntimeMessage,
} from '@/utils/commonTypes';
import type {
StopOnRunTsakResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const VulnerabilityTypePie: React.FC<VulnerabilityTypePieProps> =
]]: isSelect,
},
)}
onClick={(e) =>
onClick={() =>
onSelectList(isSelect, index)
}
key={ele.Verbose}
Expand Down
8 changes: 6 additions & 2 deletions src/pages/TaskDetail/compoments/ViewReportDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { FC, useRef } from 'react';
import { Button, message } from 'antd';
import {
Button,
// message
} from 'antd';

import { useRequest } from 'ahooks';
// import { useRequest } from 'ahooks';

// import { getTimeLineRuntimeMessage } from '@/apis/task';
import { UseDrawerRefType } from '@/compoments/WizardDrawer/useDrawer';
Expand Down Expand Up @@ -159,6 +162,7 @@ const items = {
};

const ViewReportDrawer: FC<{ runtime_id: string }> = ({ runtime_id }) => {
console.log(runtime_id, 'runtime_id');
const scriptDetailDrawerRef = useRef<UseDrawerRefType>(null);

// const { run, loading } = useRequest(getTimeLineRuntimeMessage, {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/TaskPageList/compoment/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type TColumns = {
const CommonTasksColumns = (
headerGroupValue: 1 | 2 | 3,
page: UsePageRef,
deleteValues: Record<string, any[]>,
setDeleteValues: React.Dispatch<
deleteValues?: Record<string, any[]>,
setDeleteValues?: React.Dispatch<
React.SetStateAction<Record<string, any[]>>
>,
): CreateTableProps<TaskListRequest>['columns'] => {
Expand Down

0 comments on commit 74abde5

Please sign in to comment.