From c593a1fd34a0e15dc82e7be4a2419aac0679924c Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Wed, 4 Mar 2020 15:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/tpm/TPMsettings/Shixuninformation.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js index ba37e1967..b1fec2e2a 100644 --- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js +++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js @@ -102,8 +102,12 @@ class Shixuninformation extends Component { } }) }) - this.setState({ - subvalues: newlist + console.log(this.props); + // debugger; + // this.get_mirror_script(this.props.data && this.props.data.shixun.standard_scripts[0].id) + } else { + this.props.form.setFieldsValue({ + selectscripts: this.props.data && this.props.data.shixun.choice_standard_scripts }) this.props.data && this.props.data.shixun.main_type.map((item, key) => {