kulley 7 éve
szülő
commit
c39747db79
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/app/basicVersion/exampleShow/DeployCloudChoose.js

+ 3 - 3
src/app/basicVersion/exampleShow/DeployCloudChoose.js

@@ -17,7 +17,7 @@ class DeployCloudChoose extends Component {
         super();
         this.state = {
             userID: 'demo',
-            dbKind: 'fc-db', // fc-db
+            dbKind: 'mongodb', // mongodb fc-db
             cloudID: 'tencent_CloudID',
             secretID: '',
             secretKey: '',
@@ -101,11 +101,11 @@ class DeployCloudChoose extends Component {
             }
 
 
-            console.log(now, functionName, serviceName, resources);
+            console.log('now', now, 'functionName', functionName, 'serviceName', serviceName, 'resources', resources);
             axios.post(deployAll,
                 {
                     'fc-name': functionName,
-                    'bucket': 'native-fc',
+                    'bucket': dbKind === 'mongodb'? 'native-fc' : 'fcdb-deploy',
                     'object-file': 'fc-only.zip',
                     'res-bucket': 'case',
                     'resources': resources,