From 49d0886f6855f1fb1c628b8205a8ae299aa3db09 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 14 七月 2022 18:05:28 +0800 Subject: [PATCH] 2022-07-14 --- src/tabviews/zshare/mutilform/mkCheckCard/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx b/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx index cca94e7..74100ed 100644 --- a/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx +++ b/src/tabviews/zshare/mutilform/mkCheckCard/index.jsx @@ -60,11 +60,11 @@ } UNSAFE_componentWillReceiveProps (nextProps) { - const { config } = this.props + const { config } = this.state if (!is(fromJS(config.oriOptions), fromJS(nextProps.config.oriOptions))) { this.setState({ - config: fromJS(nextProps.config).toJS(), + config: {...config, oriOptions: nextProps.config.oriOptions}, options: fromJS(nextProps.config.options).toJS() }) } @@ -178,7 +178,7 @@ getCards = () => { const { selectKeys, options, config } = this.state const { display, width, fields, picratio, multiple, backgroundColor, selectStyle, selectClass } = config - + if (options.length === 0) { return null } else if (display === 'color') { -- Gitblit v1.8.0