From f4eaf8a88bea3fa044a82671d4a06650bdab3bb6 Mon Sep 17 00:00:00 2001 From: Jerry Fan Date: Mon, 16 Oct 2023 10:48:25 +0800 Subject: [PATCH] fix: fix bug --- .../src/components/Console/MonacoEditor/index.tsx | 2 +- chat2db-client/src/components/ImportBlock/index.tsx | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/chat2db-client/src/components/Console/MonacoEditor/index.tsx b/chat2db-client/src/components/Console/MonacoEditor/index.tsx index b815ac37..dbc17875 100644 --- a/chat2db-client/src/components/Console/MonacoEditor/index.tsx +++ b/chat2db-client/src/components/Console/MonacoEditor/index.tsx @@ -211,7 +211,7 @@ function MonacoEditor(props: IProps, ref: ForwardedRef) { const createAction = (editor: IEditorIns) => { // 用于控制切换该菜单键的显示 - // const shouldShowSqlRunnerAction = editor.createContextKey('shouldShowSqlRunnerAction', true); + editor.createContextKey('shouldShowSqlRunnerAction', true); if (!props.addAction || !props.addAction.length) { return; diff --git a/chat2db-client/src/components/ImportBlock/index.tsx b/chat2db-client/src/components/ImportBlock/index.tsx index d0f7634f..66e99eab 100644 --- a/chat2db-client/src/components/ImportBlock/index.tsx +++ b/chat2db-client/src/components/ImportBlock/index.tsx @@ -38,12 +38,8 @@ function ImportBlock(props: IImportBlockProps) { }; return ( -
{ - setOpen(true); - }} - > - {children} +
+
setOpen(true)}>{children}