请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

苍狼

中级会员

80

主题

205

帖子

955

积分

中级会员

积分
955

微信认证勋章

苍狼
中级会员   /  发表于:2019-5-21 13:03  /   查看:1696  /  回复:1
本帖最后由 苍狼 于 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);
                }
            }
    }
}, "*")

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

1 个回复

倒序浏览
Simon.hu讲师达人认证 悬赏达人认证 活字格认证
超级版主   /  发表于:2019-5-21 14:51:42
沙发
已经帮您解决了,请看这个例子

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部