修改Linux下生成pdf的BUG

This commit is contained in:
Minho
2017-05-11 16:05:30 +08:00
parent ca2e0478ca
commit 93579b9625
3 changed files with 8 additions and 2 deletions

View File

@@ -610,7 +610,7 @@ func (c *DocumentController) Export() {
RecursiveFun(0, "", dpath, c, book, docs, pathList)
defer os.RemoveAll(dpath)
//defer os.RemoveAll(dpath)
os.MkdirAll("./cache", 0766)
pdfpath := "cache/" + identify + ".pdf"