feat(vr page): add custom nav bar and support page title param
1. 为APP-PLUS端的VR页面配置自定义导航栏样式 2. 从路由参数中获取并设置页面标题
This commit is contained in:
@@ -1097,6 +1097,9 @@
|
||||
{
|
||||
"path": "vr/index",
|
||||
"style": {
|
||||
// #ifdef APP-PLUS
|
||||
"navigationStyle": "custom",
|
||||
// #endif
|
||||
"navigationBarTitleText": "工厂展示"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -13,6 +13,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.title = option?.title ?? '';
|
||||
this.$api.sendRequest({
|
||||
url: '/api/config/defaultvr',
|
||||
success: res => {
|
||||
|
||||
Reference in New Issue
Block a user