Przeglądaj źródła

convertPathToHtml improve

Daniel 1 rok temu
rodzic
commit
a2bd1e6912
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/utils/index.js

+ 4 - 4
src/utils/index.js

@@ -5,19 +5,19 @@ function convertPathToHtml(path) {
     path = path.slice(3)
   }
 
-  if (count === 2) {
+  if (count === 1) {
     return '.'
   }
 
-  if (count === 3) {
+  if (count === 2) {
     return '..'
   }
 
-  if (count === 4) {
+  if (count === 3) {
     return '../..'
   }
 
-  if (count === 5) {
+  if (count === 4) {
     return '../../..'
   }