刷新后如何获取 TwoColumnsMidExpanded
How to get TwoColumnsMidExpanded after refresh
我正在使用 FlexibleColumnLayout,两条路由配置如下:
"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"]
}],
应用程序启动时会显示正确的根路径。按下按钮 Go to jobprofile
,它会转到 /jobprofile
。然后按 F5
它只显示 OneColumnLayout,尽管路径是 /jobprofile
.
来源https://github.com/softshipper/fclpoc.
如何在刷新页面后停留在 TwoColumnLayout。
将 layout
添加到您的 jobprofile
路线:
{
"pattern": "jobprofile",
"name": "jobprofile",
"layout": "TwoColumnsMidExpanded",
"target": [
"Second",
"Third"
]
},
我正在使用 FlexibleColumnLayout,两条路由配置如下:
"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"]
}],
应用程序启动时会显示正确的根路径。按下按钮 Go to jobprofile
,它会转到 /jobprofile
。然后按 F5
它只显示 OneColumnLayout,尽管路径是 /jobprofile
.
来源https://github.com/softshipper/fclpoc.
如何在刷新页面后停留在 TwoColumnLayout。
将 layout
添加到您的 jobprofile
路线:
{
"pattern": "jobprofile",
"name": "jobprofile",
"layout": "TwoColumnsMidExpanded",
"target": [
"Second",
"Third"
]
},