From 474c68f0fea10cc62977c67d186732b3346cdd53 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 17 一月 2023 18:04:45 +0800
Subject: [PATCH] 2023-01-17

---
 src/tabviews/zshare/topSearch/index.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index 9c98c03..85fbb90 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -404,6 +404,7 @@
       if (['select', 'link', 'multiselect', 'checkcard'].includes(item.type) && result[item.field] && result[item.field].length > 0) {
         let options = []
         let map = new Map()
+        let all = false
         result[item.field].forEach(cell => {
           let _item = {
             key: Utils.getuuid(),
@@ -418,7 +419,15 @@
             _item.Value = cell[item.valueField]
             _item.Text = cell[item.valueText] + ''
             
-            if (!_item.Text || map.has(_item.ParentID + _item.Value)) return
+            if (map.has(_item.ParentID + _item.Value)) return
+            if (!_item.Text) {
+              if (!all) {
+                _item.Text = '鍏ㄩ儴'
+                all = true
+              } else {
+                return
+              }
+            }
             
             map.set(_item.ParentID + _item.Value, 0)
           } else {

--
Gitblit v1.8.0