diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js index 25c6e8cad..b196bc4d8 100644 --- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js +++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js @@ -418,12 +418,21 @@ class Shixuninformation extends Component { selectscripts:response.data[0].id }) this.get_mirror_script(response.data[0].id) - this.setState({ - choice_main_type: value, - standard_scripts: response.data, - shixun_service_configs: newshixun_service_configsagin, - shixun_service_configlist: newshixun_service_configsagin, - }) + + if(e.props.mirror_name===null){ + this.setState({ + choice_main_type: value, + standard_scripts: response.data, + }) + }else{ + this.setState({ + choice_main_type: value, + standard_scripts: response.data, + shixun_service_configs: newshixun_service_configsagin, + shixun_service_configlist: newshixun_service_configsagin, + }) + } + } }).catch((error) => { @@ -851,7 +860,7 @@ class Shixuninformation extends Component { let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase()) if(itemtype>-1) { return ( -