From 32e797f35df85bb76d774638aa2459d91048ec65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 22 Mar 2023 08:40:30 +0800 Subject: [PATCH] =?UTF-8?q?enhance(debug):=E5=8E=BB=E6=8E=89=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E8=AF=AD=E5=8F=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DirTree.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/DirTree.tsx b/src/components/DirTree.tsx index e1619ca..82b712d 100644 --- a/src/components/DirTree.tsx +++ b/src/components/DirTree.tsx @@ -4,7 +4,7 @@ import { ActionIcon, Box, Flex, Stack, Text, Tooltip } from '@mantine/core'; import { notifications } from '@mantine/notifications'; import { IconEye, IconSquareMinus, IconSquarePlus } from '@tabler/icons-react'; import { invoke } from '@tauri-apps/api'; -import { equals, isEmpty, isNil, length, map, not } from 'ramda'; +import { equals, isEmpty, isNil, map, not } from 'ramda'; import { FC, PropsWithChildren, useCallback, useContext, useState } from 'react'; import { useMeasure, useMount } from 'react-use'; import { EventBusContext } from '../EventBus'; @@ -69,7 +69,6 @@ const Branch: FC> = ( try { selectDir(current.id); const files = await invoke('scan_directory', { target: current.path }); - console.log('[debug]获取到文件个数:', length(files)); storeFiles(files); ebus.emit('reset_views'); } catch (e) { @@ -122,7 +121,6 @@ export const DirTree: FC = () => { const [viewRef, { width }] = useMeasure(); const handleFocusAction = useCallback(() => { - console.log('[debug]focus action: ', focused, selected); if (isNil(focused) && not(isNil(selected))) { focus(selected); } else {