我将如何在具有此 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();
--> 似乎是对的,但这最终导致错误“堆栈内存不足”..有人帮忙吗?
我希望返回登录页面……这是自动处理的吗?