fix: fix demo filPath (#41488)

This commit is contained in:
muxin 2023-03-27 19:34:14 +08:00 committed by GitHub
parent 2a9f5ea1ab
commit 5b44e577a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ const CodePreviewer: React.FC<IPreviewerProps> = (props) => {
style,
compact,
background,
filePath,
filename,
version,
clientOnly,
} = props;
@ -399,7 +399,7 @@ createRoot(document.getElementById('container')).render(<Demo />);
{localizedTitle}
</a>
</Tooltip>
<EditButton title={<FormattedMessage id="app.content.edit-demo" />} filename={filePath} />
<EditButton title={<FormattedMessage id="app.content.edit-demo" />} filename={filename} />
</div>
<div className="code-box-description">{introChildren}</div>
<Space wrap size="middle" className="code-box-actions">