mirror of https://github.com/ColorlibHQ/AdminLTE
parent
b396e718aa
commit
3e1133679b
|
@ -2,10 +2,13 @@ function convertPathToHtml(path) {
|
||||||
let htmlpath = ''
|
let htmlpath = ''
|
||||||
while (path.startsWith('../')) {
|
while (path.startsWith('../')) {
|
||||||
path = path.slice(3)
|
path = path.slice(3)
|
||||||
if (htmlpath.length < 2) htmlpath += '.'
|
if (htmlpath.length < 2) {
|
||||||
else htmlpath += '/..'
|
htmlpath += '.'
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
htmlpath += '/..'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return htmlpath
|
return htmlpath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue