diff --git a/scripts/fetch-blocks.js b/scripts/fetch-blocks.js index 9e182b75e96a3a0a8f36c90ad6899f83510b3f17..98c63584f652ccf2a222fc19f48d12158a62b425 100644 --- a/scripts/fetch-blocks.js +++ b/scripts/fetch-blocks.js @@ -94,7 +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`); diff --git a/src/components/CopyBlock/index.tsx b/src/components/CopyBlock/index.tsx index 9ee05ae8739bd1f254aad654f0fe0911feebad7e..fb9d8ac09a40007aaab24e13a29fc1dbc13658ef 100644 --- a/src/components/CopyBlock/index.tsx +++ b/src/components/CopyBlock/index.tsx @@ -33,7 +33,7 @@ const onBlockCopy = (label: string) => { const BlockCodeView: React.SFC<{ url: string; }> = ({ url }) => { - const blockUrl = `npx umi block add ${firstUpperCase(url)} --path=${url}`; + const blockUrl = `npx umi block add ${firstUpperCase(url)} --path=${url}`; return (