fix: MML回车undefined问题,关闭搜索匹配

This commit is contained in:
TsMask
2025-10-11 17:31:24 +08:00
parent c1df7e2700
commit c40942694e
3 changed files with 3 additions and 0 deletions

View File

@@ -439,6 +439,7 @@ function fnGetList() {
/**自动完成搜索匹配前缀 */
function fnAutoCompleteSearch(value: string) {
state.autoCompleteSearch = [];
return; // 回车undefined问题关闭搜索匹配
for (const item of state.autoCompleteData) {
const filterOptions = item.options.filter((s: any) => {
return `${s.operation} ${s.object}`.indexOf(value.toLowerCase()) >= 0;

View File

@@ -408,6 +408,7 @@ function fnGetList() {
/**自动完成搜索匹配前缀 */
function fnAutoCompleteSearch(value: string) {
state.autoCompleteSearch = [];
return; // 回车undefined问题关闭搜索匹配
for (const item of state.autoCompleteData) {
const filterOptions = item.options.filter((s: any) => {
return `${s.operation} ${s.object}`.indexOf(value.toLowerCase()) >= 0;

View File

@@ -408,6 +408,7 @@ function fnGetList() {
/**自动完成搜索匹配前缀 */
function fnAutoCompleteSearch(value: string) {
state.autoCompleteSearch = [];
return; // 回车undefined问题关闭搜索匹配
for (const item of state.autoCompleteData) {
const filterOptions = item.options.filter((s: any) => {
return `${s.operation} ${s.object}`.indexOf(value.toLowerCase()) >= 0;