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",
|
"path": "vr/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
// #endif
|
||||||
"navigationBarTitleText": "工厂展示"
|
"navigationBarTitleText": "工厂展示"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
this.title = option?.title ?? '';
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/api/config/defaultvr',
|
url: '/api/config/defaultvr',
|
||||||
success: res => {
|
success: res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user