From b099de0d7cc088a0ae342b4879d0fe0d1994951f Mon Sep 17 00:00:00 2001 From: gaoyan Date: Fri, 19 Apr 2024 00:06:16 +0800 Subject: [PATCH] [Optmize] Remove unuse log (#3413) Co-authored-by: gaoyan1998 --- dinky-web/jest.config.ts | 1 - dinky-web/src/pages/DevOps/JobDetail/index.tsx | 1 - dinky-web/src/pages/Metrics/JobMetricsList/index.tsx | 1 - dinky-web/src/pages/Other/Redirect/index.tsx | 2 -- 4 files changed, 5 deletions(-) diff --git a/dinky-web/jest.config.ts b/dinky-web/jest.config.ts index 5e59cfe47c..75c0790239 100644 --- a/dinky-web/jest.config.ts +++ b/dinky-web/jest.config.ts @@ -24,7 +24,6 @@ export default async () => { }) }); - console.log(); return { ...config, testEnvironmentOptions: { diff --git a/dinky-web/src/pages/DevOps/JobDetail/index.tsx b/dinky-web/src/pages/DevOps/JobDetail/index.tsx index 5b195a4a48..edb4aa9b08 100644 --- a/dinky-web/src/pages/DevOps/JobDetail/index.tsx +++ b/dinky-web/src/pages/DevOps/JobDetail/index.tsx @@ -109,7 +109,6 @@ const JobDetail = (props: any) => { }, { tab: l('devops.jobinfo.config.JobAlert'), key: OperatorEnum.JOB_ALERT } ]; - console.log(!!data); return ( { setJobIds(jids.join(',')); if (timeRange.isReal) { return subscribeTopic(topics, (data: SseData) => { - console.log(data.data); setChartDatas((prevState) => dataProcess(prevState, [data.data])); }); } diff --git a/dinky-web/src/pages/Other/Redirect/index.tsx b/dinky-web/src/pages/Other/Redirect/index.tsx index 6c0605a0c7..0a3d4fc0df 100644 --- a/dinky-web/src/pages/Other/Redirect/index.tsx +++ b/dinky-web/src/pages/Other/Redirect/index.tsx @@ -23,8 +23,6 @@ import { Navigate, useModel } from 'umi'; const Redirect = () => { const { initialState, _ } = useModel('@@initialState'); - console.log(initialState); - const filterMenus = (menus: SysMenu[]) => { return menus?.filter((menu) => menu.type !== 'F'); };