From ce2102bf61231c33fcb00353151901c6eb0df85e Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 7 Oct 2021 21:32:45 +0800 Subject: [PATCH] fix: `importData: true` --- .../create-nocobase-app/templates/AppGenerator/src/apis/index.ts | 1 + 1 file changed, 1 insertion(+) 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 81c8335ac..d2ece199d 100644 --- a/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts +++ b/packages/create-nocobase-app/templates/AppGenerator/src/apis/index.ts @@ -57,6 +57,7 @@ for (const plugin of plugins) { api.plugin( require(`@nocobase/plugin-client/lib/server`).default, { dist: path.resolve(process.cwd(), './dist'), + importData: true, }); if (process.argv.length < 3) {