fix muilt system menu bread

develop 3.7.0.Release
就眠仪式 2021-03-24 21:48:03 +08:00
parent a44d2eebb6
commit ba5e3c2dc1
1 changed files with 22 additions and 9 deletions

View File

@ -62,16 +62,25 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
openType: dom.attr("open-type")
};
var doms = hash(dom);
if (doms != null) {
if (doms.text() != '') {
data['menuPath'] = doms.find("span").text() + " / " + data['menuPath'];
}
}
if (doms != null) {
var domss = hash(doms);
if(domss!=null){
if (domss.text() != '') {
data['menuPath'] = domss.find("span").text() + " / " + data['menuPath'];
}}
}
if (domss != null) {
var domsss = hash(domss);
if(domsss!=null){
if (domsss.text() != '') {
data['menuPath'] = domsss.find("span").text() + " / " + data['menuPath'];
}}
}
if ($("#" + _this.option.elem).is(".pear-nav-mini")) {
if (_this.option.accordion) {
@ -85,7 +94,11 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
}
function hash(dom) {
return dom.parent().parent().prev();
var d = dom.parent().parent().prev();
if (d.prop("tagName") === "UL") {
return null;
}
return d;
}
pearMenu.prototype.skin = function(skin) {