From 3a0ad1cd335f7e90df1948ffa845b6f76c314f33 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Fri, 31 Jul 2020 13:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E9=83=A8=E8=B7=B3=E8=BD=AC=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/MdRenderer.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/examples/components/MdRenderer.tsx b/examples/components/MdRenderer.tsx index 31f164302..29369e652 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 || '其他'}