Skip to content

Commit ac788b7

Browse files
nullptr-zff
authored andcommitted
fix: 修复文档图片加载问题
1 parent 9326826 commit ac788b7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

website/src/component/Preview/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ const getBooleanValue = (param, field, defaultValue) => {
3737
const Preview = (mdData) => {
3838
const $dom = useRef(null);
3939

40-
const transformImageUri = (url) => {
41-
const callback = (path) => {
42-
const reqImage = require.context(path, true, /\.(png|gif|jpg|svg)$/);
43-
const urlImage = reqImage(url);
44-
return urlImage;
45-
};
46-
return mdData.transformImageUriPath(callback);
47-
};
48-
4940
return (
5041
<Wrapper ref={$dom}>
5142
<Markdown

0 commit comments

Comments
 (0)