فهرست منبع

修复初始化地区显示

xy 7 سال پیش
والد
کامیت
b1eaf56b46
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      src/app/common/deploy/tencent/APIGroupCard.js
  2. 2 2
      src/app/common/deploy/tencent/DeployCard.js

+ 1 - 1
src/app/common/deploy/tencent/APIGroupCard.js

@@ -65,7 +65,7 @@ class APIGroupCard extends Component {
                 frontType: 'http&https',
                 userDomain: '',
                 userStatus: 'open',
-                groupRegion: props.region
+                groupRegion: props.region === '' ? 'ap-beijing' : props.region,
             };
     }
 

+ 2 - 2
src/app/common/deploy/tencent/DeployCard.js

@@ -69,10 +69,10 @@ class DeployCard extends Component {
                 description: '',
                 showOK: false,
                 functionName: props.defalutName,
-                region: props.region,
+                region: props.region === '' ? 'ap-beijing' : props.region,
                 cosBucketName: 'graphqlfc',
                 cosObjectName: props.defalutName,
-                cosBucketRegion: props.region,
+                cosBucketRegion: props.region === '' ? 'ap-beijing' : props.region,
                 serviceName: '',
                 vpcId: '',
                 subnetId: '',