Sapui5 Hybrid fiori应用程序中组件数据的启动参数

Sapui5 Hybrid fiori应用程序中组件数据的启动参数,sapui5,multi-device-hybrid-apps,Sapui5,Multi Device Hybrid Apps,我正在使用SCP web IDE完整堆栈和导入的标准fiori应用程序申请休假,并更改了代码以用于开发,我已将Component.js替换为扩展UIComponent,而不是sap.ca.scfld.md.ComponentBase,我还为应用程序创建了index.html,组件数据的属性如下: new sap.m.Shell({ app: new sap.ui.core.ComponentContainer({ height : "100%", name : "hcm.myleavere

我正在使用SCP web IDE完整堆栈和导入的标准fiori应用程序申请休假,并更改了代码以用于开发,我已将Component.js替换为扩展
UIComponent
,而不是
sap.ca.scfld.md.ComponentBase
,我还为应用程序创建了index.html,组件数据的属性如下:

new sap.m.Shell({

app: new sap.ui.core.ComponentContainer({

height : "100%",

name : "hcm.myleaverequest",

settings : {

componentData: {startupParameters: oStartupParameters}

}, 
在我构建打包的应用程序并在设备上安装并调试之后,我无法获取启动参数,而在控制器
S1
中,我获取的
sap.ui.component(c).getComponentData().startupParameters
未定义,其中当我通过index.html和component.js在本地运行时,应用程序工作正常


我们如何解决这个问题?

您是否像这样分配oStartupParameters:
var oStartupParameters=jQuery.sap.getUriParameters().mParams如本博客结尾所示:我已经在index.html中分配了以下内容,但当安装在手机上时,仍然是this.getComponentData().startupParameters返回未定义的。如果您分配oStartupParameters,如下所示:
var oStartupParameters=jQuery.sap.getUriParameters().mParams如本博客结尾所示:我在index.html中分配了以下内容,但当安装在手机上时,仍然是this.getComponentData()。startupParameters返回未定义