From 92a9b175fda139d6608c53af62e4d8b7b1c926cf Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 四月 2021 18:08:51 +0800 Subject: [PATCH] 2021-04-09 --- src/pc/components/login/wrapsetting/index.jsx | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pc/components/login/wrapsetting/index.jsx b/src/pc/components/login/wrapsetting/index.jsx index 81346a6..9c0ac72 100644 --- a/src/pc/components/login/wrapsetting/index.jsx +++ b/src/pc/components/login/wrapsetting/index.jsx @@ -27,7 +27,7 @@ } shouldComponentUpdate (nextProps, nextState) { - return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState)) + return !is(fromJS(this.state), fromJS(nextState)) } editDataSource = () => { @@ -50,7 +50,6 @@ } render () { - const { config } = this.props const { visible, dict, wrap } = this.state return ( @@ -58,7 +57,7 @@ <Icon type="edit" title="缂栬緫" onClick={() => this.editDataSource()} /> <Modal wrapClassName="popview-modal" - title={config.type === 'table' ? '琛ㄦ牸璁剧疆' : '鍗$墖璁剧疆'} + title="鐧诲綍璁剧疆" visible={visible} width={800} maskClosable={false} @@ -70,7 +69,6 @@ <SettingForm dict={dict} wrap={wrap} - config={config} inputSubmit={this.verifySubmit} wrappedComponentRef={(inst) => this.verifyRef = inst} /> -- Gitblit v1.8.0