Sapui5 如何在刷新后获得两列索引展开
我使用的两条路由配置如下:Sapui5 如何在刷新后获得两列索引展开,sapui5,Sapui5,我使用的两条路由配置如下: "routing": { "config": { "routerClass": "sap.f.routing.Router", "viewType": "XML", "async": true,
"routing": {
"config": {
"routerClass": "sap.f.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "io.example.fclpoc.view",
"controlId": "fcl",
"transition": "slide",
"bypassed": {}
},
"routes": [
{
"pattern": "jobprofile/{layout}",
"name": "jobprofile",
"target": [
"Second",
"Third"
]
},
{
"pattern": ":layout:",
"name": "first",
"target": ["First"]
}],
当应用程序启动时,它会显示正确的根路径。按下按钮转到作业配置文件
,它将转到/jobprofile
。然后按F5
它只显示一个ColumnLayout,尽管路径是/jobprofile
消息来源
如何在刷新页面后停留在TwoColumnLayout上。将
布局添加到作业配置文件中
路线:
{
"pattern": "jobprofile",
"name": "jobprofile",
"layout": "TwoColumnsMidExpanded",
"target": [
"Second",
"Third"
]
},
将layout
添加到您的jobprofile
路线:
{
"pattern": "jobprofile",
"name": "jobprofile",
"layout": "TwoColumnsMidExpanded",
"target": [
"Second",
"Third"
]
},