mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-08 00:14:26 +08:00
修复普通文件附件
This commit is contained in:
@@ -615,9 +615,9 @@ func (book *Book) ImportBook(zipPath string) error {
|
||||
|
||||
filetil.CopyFile(linkPath, dstPath)
|
||||
|
||||
link = strings.TrimPrefix(strings.Replace(dstPath, "\\", "/", -1), strings.Replace(conf.WorkingDirectory, "\\", "/", -1))
|
||||
tempLink := strings.TrimPrefix(strings.Replace(dstPath, "\\", "/", -1), strings.Replace(conf.WorkingDirectory, "\\", "/", -1))
|
||||
|
||||
link = strings.TrimSuffix(link, originalLink+")") + link + ")"
|
||||
link = strings.TrimSuffix(tempLink, originalLink+")") + link + ")"
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user