From 94fe37551855f542d1cbad8b7af7fe3311daeddb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 六月 2022 00:56:51 +0800 Subject: [PATCH] 2022-06-02 --- src/tabviews/custom/components/form/tab-form/index.jsx | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/components/form/tab-form/index.jsx b/src/tabviews/custom/components/form/tab-form/index.jsx index 8856ad9..fb57e76 100644 --- a/src/tabviews/custom/components/form/tab-form/index.jsx +++ b/src/tabviews/custom/components/form/tab-form/index.jsx @@ -237,7 +237,7 @@ async loadData () { const { mainSearch, menuType } = this.props - const { config, arr_field, BID, group } = this.state + const { config, arr_field, BID } = this.state if (config.wrap.datatype === 'static' || (config.setting.supModule && !BID)) { this.setState({ @@ -264,14 +264,11 @@ if (result.status) { let _data = result.data && result.data[0] ? result.data[0] : {$$empty: true} - let _group = group - this.setState({ - group: null, - data: _data || {$$empty: true}, + data: null, loading: false }, () => { - this.setState({group: _group}) + this.setState({data: _data}) }) } else { this.setState({ -- Gitblit v1.8.0