From 7d8035f1f370d52889d6f91e945a5918cac819b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Mon, 16 Dec 2019 19:42:45 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../tpm/TPMsettings/Shixuninformation.js | 23 +++++++++++++------
1 file changed, 16 insertions(+), 7 deletions(-)
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 (
-