From 3bdcb8da222aaedcc1b6b279d1d038fe3b714570 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 03 十月 2021 12:10:36 +0800 Subject: [PATCH] 2021-10-03 --- src/tabviews/zshare/topSearch/index.jsx | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index c2cf4ad..c1403af 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -318,7 +318,7 @@ improveSimpleSearch = (deForms) => { if (deForms.length === 0) return - let deffers = deForms.map(item => { + let deffers = deForms.map((item, index) => { let param = { func: 'sPC_Get_SelectedList', LText: item.data_sql, @@ -335,16 +335,18 @@ return ( new Promise(resolve => { - Api.getSystemCacheConfig(param).then(res => { - if (!res.status) { - notification.warning({ - top: 92, - message: res.message, - duration: 5 - }) - } - resolve(res) - }) + setTimeout(() => { + Api.getSystemCacheConfig(param).then(res => { + if (!res.status) { + notification.warning({ + top: 92, + message: res.message, + duration: 5 + }) + } + resolve(res) + }) + }, index * 30) }) ) }) -- Gitblit v1.8.0