diff --git a/packages/core/server/src/commands/pm.ts b/packages/core/server/src/commands/pm.ts index 82e5cb8f4..149faa897 100644 --- a/packages/core/server/src/commands/pm.ts +++ b/packages/core/server/src/commands/pm.ts @@ -35,10 +35,9 @@ export default (app: Application) => { try { if (started) { const res = await axios.get(`${baseURL}pm:add/${plugins.join(',')}`); - console.log(res.data); - return; + } else { + await app.pm.add(plugins); } - await app.pm.add(plugins); } catch (error) {} const fs = require('fs/promises'); await Promise.all( diff --git a/packages/samples/shop-modeling/src/client/index.tsx b/packages/samples/shop-modeling/src/client/index.tsx index e69de29bb..db735f78d 100644 --- a/packages/samples/shop-modeling/src/client/index.tsx +++ b/packages/samples/shop-modeling/src/client/index.tsx @@ -0,0 +1,5 @@ +import React from 'react'; + +export default React.memo((props) => { + return <>{props.children}; +});