本帖最后由 苍狼 于 2019-5-21 13:05 编辑
以下js要怎么改?
Forguncy.UserManagerCommand.prototype.Logout = function () {
Forguncy.common.forguncyPost("Account/Logout", {},
function (dataStr, status) {
localStorage.clear();
window.open(Forguncy.ForguncyData.ForguncyRoot, "_self");
});
return 1;
};
Forguncy.Page.bind("pagedefaultdataloaded", function () {
var storeName = window.localStorage.getItem("storeName");
var pageName = Forguncy.Page.getMasterPageName();
if(pageName == "首页母版页"){
if (!!storeName && storeName != "null") {
try {
Forguncy.Page.getCell("MD").setValue(storeName);
} catch (e) {
console.log(e);
}
}
else {
try {
Forguncy.Page.getCell("MD").setValue(Forguncy.Page.getCell("default").getValue());
} catch (e) {
console.log(e);
}
}
}
}, "*")
|