起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1496|回复: 2

[结贴] shell不能嵌套

[复制链接]

31

主题

85

帖子

461

积分

中级会员

Rank: 3Rank: 3

积分
461
QQ
发表于 2017-3-17 00:50:03 | 显示全部楼层 |阅读模式
我在index (门户)的ModelLoad中来验证是否登录,现在注销的时候,跳转到index页,提示shell不能嵌套,
var type = justep.Shell.userType.get();
                var name = justep.Shell.userName.get();
                if (!confirm("确定要注销" + type + "用户:" + name + "吗?")) {
                        return;
                }
                justep.Shell.userType.set("");
                justep.Shell.userName.set("");
                justep.Shell.userId.set("");
                justep.Shell.photo.set("");
                localStorage.removeItem("userUUID");
                justep.Util.hint("注销成功");
                setTimeout(function() {                       
                        justep.Shell.showPage('./index.w');   
                }, 5000);


请问下,这儿要怎么跳转到index页
发表于 2017-3-17 10:44:53 | 显示全部楼层
重新定位 window.location.href= 首页地址index.html
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

31

主题

85

帖子

461

积分

中级会员

Rank: 3Rank: 3

积分
461
QQ
 楼主| 发表于 2017-3-21 11:08:03 | 显示全部楼层
liangyongfei 发表于 2017-3-17 10:44
重新定位 window.location.href= 首页地址index.html

ok,成功,谢谢。
麻烦结贴吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-7-4 22:26 , Processed in 0.060148 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表