优化toc

master
宇天 2021-01-14 13:49:54 +08:00
parent 9252e0c180
commit cc7562db6e
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ module.exports = function(app, createViewWindow) {
toc = eb.flow.map((it, i) => {
let tmp = dict[it.id] || { level: i === 0 ? i : undefined }
if (!tmp.hasOwnProperty('level')) {
if (tmp.level === undefined) {
tmp.level = 1
}
if (it.id === 'titlepage') {