Commit 67b0dcd9 authored by 陈帅's avatar 陈帅

blocks: change block base url

parent c0807c42
......@@ -90,6 +90,9 @@ export default {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION:
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION || '', // preview.pro.ant.design only do not use in your production ; preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
},
block: {
defaultGitUrl: 'https://github.com/ant-design/pro-blocks',
},
treeShaking: true,
targets: {
ie: 11,
......
......@@ -16,7 +16,7 @@ const firstUpperCase = (pathString: string) => {
const BlockCodeView: React.SFC<{
url: string;
}> = ({ url }) => {
const blockUrl = `npx umi block add ant-design-pro/${firstUpperCase(url)} --path=${url}`;
const blockUrl = `npx umi block add ${firstUpperCase(url)} --path=${url}`;
return (
<div className={styles['copy-block-view']}>
<Typography.Paragraph copyable>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment