问题描述
在 UI5 和 FIORI SplitApp 应用程序上,每当用户在其设备上以纵向模式查看应用程序时,显示的第一个屏幕是第二个视图/屏幕.是否可以绕过此行为(但仍使用 splitapp),以便在应用程序加载时,用户将看到拆分应用程序的第一个屏幕?
On UI5 and FIORI SplitApp application, whenever users are viewing the app on portrait mode on their devices, the first screen that is being shown is the 2nd view/screen. Is it possible to bypass this behavior (but still using splitapp) so the on load of the application, users will see the 1st screen of the split app?
谢谢!
推荐答案
在你的 manifest.json
(或任何你定义 routes
的地方)切换你的目标>
Switch your targets in your manifest.json
(or wherever you are defining your routes
)
"routes": [{
"pattern": "",
"name": "master",
"target": ["home", "master"]
}, {
...
}]
这意味着 home
(详细视图)在 master
(主视图)下方呈现,因此主视图首先显示.
This means that home
(the detail view) is rendered below master
(the master view), thus the master view is shown first.
这篇关于纵向模式下的 SplitApp.显示第一个视图而不是第二个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!