From ee132585987c988d32d165e13346c64ceff38d88 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 14 一月 2025 15:31:09 +0800
Subject: [PATCH] 2025-01-14

---
 src/tabviews/custom/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 237e8ce..7e1cae0 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -583,8 +583,9 @@
         Utils.initSearchVal(item)
 
         if (urlparam.$searchkey) {
+          let reg = new RegExp('(^|,)' + urlparam.$searchkey + '($|,)', 'ig')
           item.search.forEach(cell => {
-            if (urlparam.$searchkey === cell.field.toLowerCase() && ['text', 'select', 'link', 'checkcard'].includes(cell.type)) {
+            if (reg.test(cell.field) && ['text', 'select', 'link', 'checkcard'].includes(cell.type)) {
               cell.initval = urlparam.$searchval
             }
           })

--
Gitblit v1.8.0