You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
531 B
Plaintext
23 lines
531 B
Plaintext
|
|
//处理 url 根据 MenuModel 菜单类型 解析url.
|
|
function DealMenuUrl(menu) {
|
|
|
|
if (menu.Icon == "" || menu.Icon == null) {
|
|
menu.Icon = "icon-user";
|
|
}
|
|
|
|
if (menu.UrlExt == undefined) menu.UrlExt = menu.Url;
|
|
|
|
var basePath = "";
|
|
if (menu.MenuModel === "" || menu.MenuModel === null) {
|
|
return menu;
|
|
}
|
|
|
|
if (menu.MenuModel === "SelfUrl") {
|
|
menu.Url = basePath + + menu.UrlExt;
|
|
return menu;
|
|
}
|
|
|
|
alert('没有判断的模式:' + menu.MenuModel);
|
|
return menu;
|
|
} |