有此API示例的Shell控件中的注销函数如何实现:https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.commons.ApplicationHeader.html#event:logoff
var oLogoff = new sap.ui.commons.ApplicationHeader();
... // within the Shell (function logout)
logout : function(oEvent) {
oLogoff.fireLogoff(); // this.fireLogoff() also not working
},
...
编辑:
oShell.fireLogout();
有人帮忙吗?
我希望回到登录页.这是自动处理的吗?
发布于 2015-05-04 14:12:19
Shell控件的logout
函数只是一个事件,当有人单击Shell头中的注销按钮(请参见这里)时,您可以使用该事件触发您自己的注销函数。
当您一次又一次地调用自己的函数时,oShell.fireLogout()
会导致堆栈溢出。
注销本身并不是自动完成的。根据部署场景的不同,注销实现因会话管理的不同而不同。
发布于 2017-09-07 12:19:58
使用shell容器注销-方法:
sap.ushell.Container.logout();
https://stackoverflow.com/questions/30023942
复制相似问题