From d2fd67a1bcec35db7870f55a83a25c043ae854f8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 06 九月 2023 15:58:16 +0800 Subject: [PATCH] 2023-09-06 --- src/tabviews/zshare/topSearch/index.jsx | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 6666d61..7b3a720 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -669,6 +669,8 @@ } handleSubmit = () => { + const { config } = this.props + this.setState({}, () => { this.props.form.validateFields((err, values) => { if (err) return @@ -706,11 +708,20 @@ this.sign = '' }, 2000) + if (config.wrap && config.wrap.cacheSearch === 'true') { + let _values = {} + searches.forEach(item => { + _values[item.key] = item.value + }) + + window.GLOB.SearchBox.set(config.$searchId + 'cache', _values) + } + if (this.props.refreshdata) { this.props.refreshdata(searches) } else { - window.GLOB.SearchBox.set(this.props.config.$searchId, searches) - MKEmitter.emit('searchRefresh', this.props.config.$searchId) + window.GLOB.SearchBox.set(config.$searchId, searches) + MKEmitter.emit('searchRefresh', config.$searchId) } }) }) -- Gitblit v1.8.0