From 026781515cccc945a7bdea8becd08f527a43ccbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Thu, 6 Jun 2024 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C=E5=8D=B4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=AB=98=E4=BA=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tools.js b/src/utils/tools.js index ceec8064..46256abd 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -1427,7 +1427,7 @@ export const myHighLight = { const newText = text.replace(regex, (match) => { // 将value中的value提取出来对比,string即精准搜索,fullText模糊搜索 for (const item of value) { - if ((item.type === columnType.string && item.value === el.innerHTML) || el.className.indexOf('high-location') > -1) { + if ((item.value && item.type === columnType.string && item.value === el.innerHTML) || el.className.indexOf('high-location') > -1) { if (el.className.indexOf('high-light-block') > -1) { return `${match}` } else {