From 833efd98e499ceda099d1f6ca65c365e9ea7a379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liu=20=E5=AE=87=E9=98=B3?= Date: Tue, 5 Nov 2024 15:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4console.log=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/fireToast.tsx | 2 -- src/pages/Create/components/PublishForm/index.tsx | 2 -- src/pages/Route/index.tsx | 3 --- 3 files changed, 7 deletions(-) diff --git a/src/hooks/fireToast.tsx b/src/hooks/fireToast.tsx index 1a96cbe..ad5918c 100644 --- a/src/hooks/fireToast.tsx +++ b/src/hooks/fireToast.tsx @@ -68,8 +68,6 @@ const fireToast = () => { const alertSettings=localStorage.getItem("alertSettings"); if (alertSettings){ for (const alertSetting of JSON.parse(alertSettings)) { - console.log(alertSetting); - const value=isNaN(parseFloat(alertSetting.value))?alertSetting.value:parseFloat(alertSetting.value); const para=alertSetting.criterion<2?"delta_"+alertSetting.para:alertSetting.para; if (alertSetting.id=="ALL"){ diff --git a/src/pages/Create/components/PublishForm/index.tsx b/src/pages/Create/components/PublishForm/index.tsx index ca94c65..e559c2b 100644 --- a/src/pages/Create/components/PublishForm/index.tsx +++ b/src/pages/Create/components/PublishForm/index.tsx @@ -83,8 +83,6 @@ const PublishForm = ({ data, closeModel }: { data: Article, closeModel: () => vo }; const onSubmit: FormProps['onFinish'] = async (values) => { - console.log(values); - // 如果是文章标签,则先判断是否存在,如果不存在则添加 let tagIds: number[] = [] if (values.tagIds) { diff --git a/src/pages/Route/index.tsx b/src/pages/Route/index.tsx index 5483348..9cac2c4 100644 --- a/src/pages/Route/index.tsx +++ b/src/pages/Route/index.tsx @@ -54,9 +54,6 @@ const RoutePage = () => { const onSubmit = async () => { setLoading(true); form.validateFields().then(async (values: Route) => { - console.log(111,route.id); - console.log(222,values); - if (route.id) { await editRouteDataAPI({ ...route, ...values });