未验证 提交 4eaaaa45 编写于 作者: 飞龙 提交者: GitHub

Update index.js

上级 4ebe91ce
......@@ -40,11 +40,11 @@ function writeEpub(articles, imgs, name, path) {
})
}
for(var [name, data] of imgs.entries()) {
zip.file(`OEBPS/Images/${name}`, data);
for(var [fname, data] of imgs.entries()) {
zip.file(`OEBPS/Images/${fname}`, data);
imgToc.push({
file: name,
file: fname,
})
}
......@@ -69,4 +69,4 @@ function writeEpub(articles, imgs, name, path) {
.then(co => fs.writeFileSync(path, co))
}
module.exports = writeEpub
\ No newline at end of file
module.exports = writeEpub
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册