@@ -4,7 +4,7 @@ import { formatParams } from '@/utils/common';
44import connectToEventSource from '@/utils/eventSource' ;
55import { Button , Spin , message , Drawer , Modal } from 'antd' ;
66import ChatInput , { SyncModelType } from './ChatInput' ;
7- import Editor , { IEditorOptions , IExportRefFunction , IRangeType } from './MonacoEditor' ;
7+ import MonacoEditor , { IEditorOptions , IExportRefFunction , IRangeType } from './MonacoEditor' ;
88import historyServer from '@/service/history' ;
99import aiServer from '@/service/ai' ;
1010import { v4 as uuidv4 } from 'uuid' ;
@@ -113,7 +113,6 @@ function Console(props: IProps, ref: ForwardedRef<IConsoleRef>) {
113113 // 上一次同步的console数据
114114 const lastSyncConsole = useRef < any > ( defaultValue ) ;
115115 const [ saveStatus , setSaveStatus ] = useState < ConsoleStatus > ( executeParams . status || ConsoleStatus . DRAFT ) ;
116-
117116 /**
118117 * 当前选择的AI类型是Chat2DBAI
119118 */
@@ -540,9 +539,7 @@ function Console(props: IProps, ref: ForwardedRef<IConsoleRef>) {
540539 } }
541540 />
542541 ) }
543- { /* <div key={uuid()}>{chatContent.current}</div> */ }
544-
545- < Editor
542+ < MonacoEditor
546543 id = { uid }
547544 defaultValue = { defaultValue }
548545 isActive = { isActive }
@@ -556,7 +553,6 @@ function Console(props: IProps, ref: ForwardedRef<IConsoleRef>) {
556553
557554 { /* <NewEditor id={uid} dataSource={props.executeParams.type} database={props.executeParams.databaseName} /> */ }
558555
559- { /* <Modal open={modelConfig.open}>{modelConfig.content}</Modal> */ }
560556 < Drawer open = { isAiDrawerOpen } getContainer = { false } mask = { false } onClose = { ( ) => setIsAiDrawerOpen ( false ) } >
561557 < Spin spinning = { isAiDrawerLoading } style = { { height : '100%' } } >
562558 < div className = { styles . aiBlock } > { aiContent } </ div >
0 commit comments