diff --git a/examples/components/MdRenderer.tsx b/examples/components/MdRenderer.tsx index 31f16430..29369e65 100644 --- a/examples/components/MdRenderer.tsx +++ b/examples/components/MdRenderer.tsx @@ -12,6 +12,12 @@ import {Portal} from 'react-overlays'; import classnames from 'classnames'; import {Link} from 'react-router'; +let ContextPath = ''; + +if (process.env.NODE_ENV === 'production') { + ContextPath = '/amis'; +} + class CodePreview extends React.Component { state = { PlayGround: null @@ -200,7 +206,10 @@ export default function (doc) {
{prevDoc ? ( - +
@@ -215,7 +224,10 @@ export default function (doc) { ) : null} {nextDoc ? ( - +
下一篇 - {nextDoc.group || '其他'}