mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
解决二级目录部署时导入的图片无法显示的BUG
This commit is contained in:
parent
4a715d0785
commit
449fecd4eb
@ -701,7 +701,7 @@ func (book *Book) ImportBook(zipPath string) error {
|
||||
}
|
||||
}
|
||||
|
||||
imageUrl = strings.Replace(strings.TrimSuffix(image, originalImageUrl+")")+imageUrl+")", "\\", "/", -1)
|
||||
imageUrl = strings.Replace(strings.TrimSuffix(image, originalImageUrl+")")+ conf.URLForWithCdnImage(imageUrl) +")", "\\", "/", -1)
|
||||
return imageUrl
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user