From 920e94fc5483b081b3d43c86df8f56d838f2f14d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 06 一月 2024 22:07:15 +0800 Subject: [PATCH] 2024-01-06 --- src/tabviews/zshare/topSearch/mkSelect/index.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/topSearch/mkSelect/index.jsx b/src/tabviews/zshare/topSearch/mkSelect/index.jsx index 87000f4..4dcfe0a 100644 --- a/src/tabviews/zshare/topSearch/mkSelect/index.jsx +++ b/src/tabviews/zshare/topSearch/mkSelect/index.jsx @@ -47,10 +47,12 @@ options: fromJS(nextProps.config.options).toJS() }) - if (config.$first && nextProps.config.initval) { + if (config.type !== 'multiselect') { this.setState({ value: nextProps.config.initval }) + + this.props.onChange(nextProps.config.initval, true) } } } -- Gitblit v1.8.0