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