Commit d9e835fe authored by 何波's avatar 何波

面包屑处理

parent 43f4744f
...@@ -1241,18 +1241,14 @@ ...@@ -1241,18 +1241,14 @@
</html> </html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script> <script>
// window.onload = function() { let menuName = localStorage.getItem("menuName");
// console.log("11111111")
// }
let menuName = localStorage.getItem("menuName");
// console.log("menuName===========",menuName) // console.log("menuName===========",menuName)
let list = menuName.split(">"); let list = menuName.split(">");
// console.log(list,'list========='); const prev = list.slice(0, -1).join(' > ');
document.getElementById("breadcrumb").innerHTML = const last = list[list.length - 1];
`当前位置:${list[0]} > ${list[1]} > <span class="breadcrumb_item">${list[2]}</span>`; // console.log(list,'list=========');
document.getElementById("breadcrumb").innerHTML =
`当前位置:${prev ? prev + ' > ' : ''}<span class="breadcrumb_item">${last}</span>`;
function onBack(){ function onBack(){
window.history.back(); 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