我在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);