mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-19 19:57:09 +08:00
修复导出pdf无法识别上传的图片的问题。
This commit is contained in:
@@ -1083,6 +1083,8 @@ func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, bo
|
||||
c.Abort("500")
|
||||
}
|
||||
//beego.Info(fpath,html)
|
||||
html = strings.Replace(html,"<img src=\"/uploads","<img src=\""+ c.BaseUrl() +"/uploads",-1)
|
||||
|
||||
f.WriteString(html)
|
||||
f.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user