Просмотр исходного кода

default groupName can not have - replace with _

Csy817 7 лет назад
Родитель
Сommit
c93b774e94

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

@@ -28,7 +28,7 @@ class APIGroupCard extends Component {
             :
             this.state = {
                 showOK: false,
-                groupName: 'graphql-endpoint',
+                groupName: 'graphql_endpoint',
                 environmentName: 'test',
                 defaultDomain: '',
                 frontType: 'http&https',
@@ -52,7 +52,7 @@ class APIGroupCard extends Component {
             })
         } else {
             this.setState ( {
-                groupName: 'graphql-endpoint',
+                groupName: 'graphql_endpoint',
                 environmentName: 'test',
                 defaultDomain: '',
                 frontType: 'http&https',

+ 3 - 3
src/app/common/deploy/tencent/TencentConfig.js

@@ -105,9 +105,9 @@ class TencentConfig extends Component {
                 params: {
                     'cloud-name': 'tencent',
                     schema:"ecommerce_schemaID",
-                    deploy:"deploy_98765_43210",
-                    api:"apiPath_12345_67890",
-                    group:"apiGrpup_98765_43210"
+                    deploy:"deploy_1544504304478_57468453",
+                    api:"path_1544504334478_82625598",
+                    group:"group_1544504325443_46750115"
                 }
             })
             .then((res) => {

+ 1 - 0
src/app/graphqlService/component/graphql/Graphql.jsx

@@ -9,6 +9,7 @@ class Graphql extends Component {
   constructor() {
     super();
     this.state = {
+      // api: 'http://service-hnqzcew1-1254337200.ap-beijing.apigateway.myqcloud.com/release/graphql',
       // api: 'http://service-4i9xdoqo-1254337200.ap-guangzhou.apigateway.myqcloud.com/release/graphql',
       // api: 'http://service-ci2tk8iu-1254337200.ap-guangzhou.apigateway.myqcloud.com/release/graphql',
       // 便于开发调试,请删除并换成上面

+ 1 - 0
src/login/LoginInput.js

@@ -40,6 +40,7 @@ class LoginInput extends Component {
 
     login = () => {
         let _this = this;
+        // let loginUrl = `http://localhost:8999/login`;
 
         axios.post(loginUrl, {
             'user-name': this.state.login_username,