fix: fix bug

This commit is contained in:
Jerry Fan
2023-10-16 10:48:25 +08:00
parent a133094550
commit f4eaf8a88b
2 changed files with 3 additions and 7 deletions

View File

@@ -211,7 +211,7 @@ function MonacoEditor(props: IProps, ref: ForwardedRef<IExportRefFunction>) {
const createAction = (editor: IEditorIns) => {
// 用于控制切换该菜单键的显示
// const shouldShowSqlRunnerAction = editor.createContextKey('shouldShowSqlRunnerAction', true);
editor.createContextKey('shouldShowSqlRunnerAction', true);
if (!props.addAction || !props.addAction.length) {
return;

View File

@@ -38,12 +38,8 @@ function ImportBlock(props: IImportBlockProps) {
};
return (
<div
onClick={() => {
setOpen(true);
}}
>
{children}
<div>
<div onClick={() => setOpen(true)}>{children}</div>
<Modal title={title} open={open} onCancel={onClose} onOk={onOk}>
<Upload