mirror of https://github.com/ColorlibHQ/AdminLTE
convertPathToHtml improve
parent
551ae37e65
commit
a2bd1e6912
|
@ -5,19 +5,19 @@ function convertPathToHtml(path) {
|
||||||
path = path.slice(3)
|
path = path.slice(3)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count === 2) {
|
if (count === 1) {
|
||||||
return '.'
|
return '.'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count === 3) {
|
if (count === 2) {
|
||||||
return '..'
|
return '..'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count === 4) {
|
if (count === 3) {
|
||||||
return '../..'
|
return '../..'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count === 5) {
|
if (count === 4) {
|
||||||
return '../../..'
|
return '../../..'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue