瀏覽代碼

fixed lint errors

Cláudio Patrício 1 年之前
父節點
當前提交
2458b90417
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/utils/index.js

+ 2 - 2
src/utils/index.js

@@ -2,9 +2,9 @@ function convertPathToHtml(path) {
   let htmlpath = ''
   while (path.startsWith('../')) {
     path = path.slice(3)
-    htmlpath.length < 2 ? htmlpath += '.' : htmlpath += '/..'
+    htmlpath += htmlpath.length < 2 ? '.' : '/..'
   }
-  
+
   return htmlpath
 }