请问下,我自己画了个门户写了个登录注销,为何调用你们的注销方法时,返回成功了,
请问下,我自己画了个门户写了个登录注销,为何调用你们的注销方法时,返回成功了,但是实际上token还在,没有清空,还是一样可以登录 就是调用组织服务里的logout用户注销方法,var action = this.Actions.load("x_organization_assemble_authentication"); action.AuthenticationAction.logout(//平台封装好的方法 function( json ){ //服务调用成功的回调函数, json为服务传回的数据 data = json.data; //为变量data赋值 }.bind(this), function( json ){ //服务调用失败的回调函数, json为服务传回的数据 data = json.data; //为变量data赋值 }.bind(this), false //同步执行 ); 您好:请问您注销代码怎么写的。 您好:我测试过这个接口是好的。
前端i您可以这样使用
MWF.Actions.get("x_organization_assemble_authentication").logout(function(){
window.location.reload();
}.bind(this)); 好的,谢谢
页:
[1]