Skip to content

Commit

Permalink
fix: 图片名称包含有括号的时候 markdown 链接无法加载成功
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Aug 22, 2022
1 parent 9f92bb9 commit a11d9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/pages/Static/img/tools.tsx
Expand Up @@ -6,7 +6,7 @@ export const getImgLink = (realPath) => {
if (realPath.includes('http://') || realPath.includes('https://')) {
url = realPath;
}
return url;
return url.replace(/\)/g, '%29');
};
export const copyImgLink = (realPath, isMarkdown = false) => {
let url = getImgLink(realPath);
Expand Down

0 comments on commit a11d9b5

Please sign in to comment.