File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
bklog/web/src/views/retrieve-v2/search-bar/sql-mode Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -480,8 +480,8 @@ const handleKeydown = (e: {
480480 const dropdownList = dropdownEl .querySelectorAll (' .list-item' );
481481 const hasHover = dropdownEl .querySelector (' .list-item.is-hover' );
482482 if (code === ' NumpadEnter' || code === ' Enter' ) {
483+ // Ctrl+Enter 操作已由父组件处理,这里不再处理
483484 if (e .ctrlKey || e .metaKey ) {
484- emits (' text-to-query' , props .value );
485485 return ;
486486 }
487487
Original file line number Diff line number Diff line change @@ -231,7 +231,9 @@ const createEditorInstance = () => {
231231 return true ;
232232 },
233233 onCtrlEnter: () => {
234- if ((getTippyInstance ()? .state ? .isShown ?? false ) && modelValue .value .length ) {
234+ // 如果有内容,直接执行 AI 解析,无论是否有下拉提示
235+ if (modelValue .value .length ) {
236+ handleTextToQuery ();
235237 return true ;
236238 }
237239
You can’t perform that action at this time.
0 commit comments