|
手机APP在服务器重启或者session超时之后就会在红色的代码处出错,请问手机APP在session超时之后如何自动重新登录?
Model.prototype.mainDataCustomRefresh = function(event){
debugger;
var data = event.source;
var messageAction = "$UI/portal/mobile/main/main.j";
var url = new justep.URL(require.toUrl(messageAction));
url.setParam('bsessionid', justep.URL.getBSessionID());
var result = $.ajax({
type: "GET",
url: url.toString(),
async: false,
cache:false
});
debugger;
if(result.responseJSON.flag){
var table = result.responseJSON.data.value;
data.loadData(table);
}
};
|
|