diff --git a/scripts/fetch-blocks.js b/scripts/fetch-blocks.js index d6b27c1c516317bdf73b1f2842cf49a3c0a15bb6..9e182b75e96a3a0a8f36c90ad6899f83510b3f17 100644 --- a/scripts/fetch-blocks.js +++ b/scripts/fetch-blocks.js @@ -94,9 +94,7 @@ const installBlock = async () => { console.log('install ' + chalk.green(item.name) + ' to: ' + chalk.yellow(item.path)); gitFiles = gitFiles.filter(file => file.path !== gitPath); const skipModifyRouter = item.routes ? '--skip-modify-routes' : ''; - const cmd = `umi block add https://github.com/ant-design/pro-blocks/tree/master/${gitPath} --path=${ - item.path - } ${skipModifyRouter}`; + const cmd = `umi block add https://github.com/ant-design/pro-blocks/tree/master/${gitPath} --path=${item.path} ${skipModifyRouter}`; try { await execCmd(cmd); console.log(`install ${chalk.hex('#1890ff')(item.name)} success`);