diff --git a/README.md b/README.md index 898b452b2..a3c83541b 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ yarn create nocobase-app cp .env.example .env docker-compose up -d postgres yarn install +yarn nocobase init yarn start ~~~ diff --git a/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts b/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts index d2ece199d..ef13aa210 100644 --- a/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts +++ b/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts @@ -57,7 +57,7 @@ for (const plugin of plugins) { api.plugin( require(`@nocobase/plugin-client/lib/server`).default, { dist: path.resolve(process.cwd(), './dist'), - importData: true, + importDemo: true, }); if (process.argv.length < 3) { diff --git a/packages/plugin-collections/src/server.ts b/packages/plugin-collections/src/server.ts index 5ff485d1b..d64f01c4e 100644 --- a/packages/plugin-collections/src/server.ts +++ b/packages/plugin-collections/src/server.ts @@ -27,7 +27,6 @@ export default { const Collection = database.getModel('collections'); for (const tableName of tableNames) { const table = database.getTable(tableName); - console.log(tableName, table); if (!table) { continue; }