sap.ui5具有其他属性清单错误。

2020-09-13 08:34发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) { _versio...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


 {
     " _version":" 1.2.0",
     " sap.app":{
     " _version":" 1.2.0",
     " id":" pricereview",
     " type":"应用程序",
     " i18n":" i18n/i18n.properties",
     " title":" {{appTitle}}",
     " description":" {{appDescription}}",
     " applicationVersion":{
     " version":" 1.0.0"
     },
     "数据源": {
     " mainService":{
     " uri":"/img/sap/opu/odata/stl/GWP_PRICE_REVIEW_SRV/",
     " type":" OData",
     "设置":{
     " odataVersion":" 2.0",
     " localUri":" localService/metadata.xml",
     "注释":[
     " DetailViewAnnotations"
     ]
     }
     },
     " DetailViewAnnotations":{
     " uri":" ../annotations.xml",
     " type":" ODataAnnotation",
     "设置":{
     " localUri":" ../annotations.xml"
     }
     }
     },
     " sourceTemplate":{
     " id":" sap.ui.ui5-template-plugin.1worklist",
     "版本":" 1.44.6"
     }
     },
     " sap.ui":{
     " _version":" 1.2.0",
     " technology":" UI5",
     "图标":{
     " icon":" sap-icon://task",
     " favIcon":"",
     "电话": "",
     " phone @ 2":"",
     " tablet":"",
     " tablet @ 2":""
     },
     " deviceTypes":{
     "桌面":是的,
     "平板电脑":是的,
     "电话":正确
     },
     " supportedThemes":[
     " sap_hcb",
     " sap_belize"
     ]
     },
     " sap.ui5":{
     " _version":" 1.2.0",
     " rootView":{
     " viewName":" pricereview.view.App",
     " type":" XML",
     " id":" app"
     },
     "依赖关系":{
     " minUI5Version":" 1.36.0",
     " libs":{
     " sap.ui.core":{
     " minVersion":" 1.36.0"
     },
     " sap.m":{
     " minVersion":" 1.36.0"
     },
     " sap.ui.layout":{
     " minVersion":" 1.36.0"
     },
     " sap.ushell":{
     " minVersion":" 1.36.0"
     }
     }
     },
     " contentDensities":{
     "紧凑":是的,
     "舒适":是
     },
     "楷模": {
     " i18n":{
     " type":" sap.ui.model.resource.ResourceModel",
     "设置":{
     " bundleName":" pricereview.i18n.i18n"
     }
     },
     "":{
     " dataSource":" mainService",
     " preload":是
     }
     },
     "服务": {
     " ShellUIService":{
     " factoryName":" sap.ushell.ui5service.ShellUIService",
     "懒惰":错误,
     "设置":{
     " setHierarchy":"自动",
     " setTitle":"自动"
     }
     }
     },
     "路由":{
     " config":{
     " routerClass":" sap.m.routing.Router",
     " viewType":" XML",
     " viewPath":" pricereview.view",
     " controlId":" app",
     " controlAggregation":"页面",
     "绕过":{
     "目标":[
     "未找到"
     ]
     },
     "异步":true
     },
     "路线":[
     {
     " pattern":"",
     " name":"工作清单",
     "目标":[
     "工作清单"
     ]
     },
     {
     " pattern":" EtyPriceReviewCollection/{objectId}",
     " name":"对象",
     "目标":[
     "目的"
     ]
     }
     ],
     "目标":{
     "工作清单":{
     " viewName":"工作清单",
     " viewId":"工作清单",
     " viewLevel":1
     " title":" {i18n> worklistViewTitle}"
     },
     "对象":{
     " viewName":"对象",
     " viewId":"对象",
     " viewLevel":2
     " title":" {i18n> objectViewTitle}"
     },
     " objectNotFound":{
     " viewName":" ObjectNotFound",
     " viewId":" objectNotFound"
     },
     "未找到": {
     " viewName":"未找到",
     " viewId":" notFound"
     }
     }
     }
     }
     }
 

专家,我在manifest.json文件中遇到此错误。 它说" sap.ui5"-具有其他属性",请告诉我这是什么错误。预先感谢

8条回答
樱桃小丸子0093
2020-09-13 09:31

组件工厂函数sap.ui.component使您可以在创建组件实例之前加载manifest.json。 这样,您可以预加载依赖关系(库和组件),从而提高加载组件的性能。 预加载也适用于模型,可以在组件加载期间将其标记为预加载。

要启用此所谓的"清单优先"功能,可以选择以下选项之一:

  • 将manifestFirst标志设置为true。
  • 将manifestUrl指定为组件工厂函数的参数:
//通过manifestFirst选项加载
 sap.ui.component({
   名称:" sap.my.component",
   manifestFirst:true});//通过manifestUrl加载
 sap.ui.component({
   名称:" sap.my.component",

manifestUrl:" any/location/sap/my/component/manifest.json"});

一周热门 更多>

相关问答