mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-08 00:14:26 +08:00
解决二级目录部署时导入的图片无法显示的BUG
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user