diff --git a/src/utils/index.js b/src/utils/index.js index 7e3b811cd..28daf68d6 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -2,10 +2,13 @@ function convertPathToHtml(path) { let htmlpath = '' while (path.startsWith('../')) { path = path.slice(3) - if (htmlpath.length < 2) htmlpath += '.' - else htmlpath += '/..' + if (htmlpath.length < 2) { + htmlpath += '.' + } + else { + htmlpath += '/..' + } } - return htmlpath }