Commit d9e835fe authored by 何波's avatar 何波

面包屑处理

parent 43f4744f
......@@ -1241,18 +1241,14 @@
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script>
// window.onload = function() {
// console.log("11111111")
// }
let menuName = localStorage.getItem("menuName");
let menuName = localStorage.getItem("menuName");
// console.log("menuName===========",menuName)
let list = menuName.split(">");
// console.log(list,'list=========');
document.getElementById("breadcrumb").innerHTML =
`当前位置:${list[0]} > ${list[1]} > <span class="breadcrumb_item">${list[2]}</span>`;
let list = menuName.split(">");
const prev = list.slice(0, -1).join(' > ');
const last = list[list.length - 1];
// console.log(list,'list=========');
document.getElementById("breadcrumb").innerHTML =
`当前位置:${prev ? prev + ' > ' : ''}<span class="breadcrumb_item">${last}</span>`;
function onBack(){
window.history.back();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment