From 681d940fa2df5fc2c73a6aef87010a3926ebd8d1 Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 7 Oct 2021 21:54:10 +0800 Subject: [PATCH] fix: typo --- README.md | 1 + .../templates/AppGenerator/src/apis/index.ts | 2 +- packages/plugin-collections/src/server.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) 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; }