From b336d3accadcdca705e1b1b45acb12d589a06fd7 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 28 Nov 2021 14:52:01 +0800 Subject: [PATCH] docs: fix the incorrect version of antdv in codesandbox (#4942) --- site/src/utils/generateOnlineDemo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/src/utils/generateOnlineDemo.ts b/site/src/utils/generateOnlineDemo.ts index 0d9dc7f2a..94c99f01a 100644 --- a/site/src/utils/generateOnlineDemo.ts +++ b/site/src/utils/generateOnlineDemo.ts @@ -1,4 +1,5 @@ import { getParameters } from 'codesandbox/lib/api/define'; +import packageInfo from '../../../package.json'; const indexHtml = ` @@ -63,7 +64,7 @@ export function getCodeSandboxParams(code: string, meta: Meta): string { dependencies: { ...getDeps(code), vue: 'next', - 'ant-design-vue': 'next', + 'ant-design-vue': packageInfo.version, }, devDependencies: { '@vue/cli-plugin-babel': '~4.5.0',