mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2026-03-13 09:02:05 +08:00
fix: fix bug
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user