修复导出pdf无法识别上传的图片的问题。

This commit is contained in:
Minho
2017-05-26 18:30:09 +08:00
parent 62fc4d09a1
commit 6f9367941d
2 changed files with 4 additions and 6 deletions

View File

@@ -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()