nutzwk 添加菜单,选择上级菜单不能加载数据,node.id总是等于#
function initTreeView() {
$("#jsTreeParentUnit").jstree({
plugins: ["wholerow", "json_data"],
core: {
data: {
dataType: "json",
url: function (node) {
return node.id === "#" ? "${base}/platform/sys/menu/tree" : "${base}/platform/sys/menu/tree?pid=" + node.id
}
},
multiple: false
}
}).on("dblclick.jstree", function (node) {
selectParentMenu();
});
}