feat(vr page): add custom nav bar and support page title param

1. 为APP-PLUS端的VR页面配置自定义导航栏样式
2. 从路由参数中获取并设置页面标题
This commit is contained in:
2026-07-25 15:20:51 +08:00
parent 3d4941865e
commit eab5a97ba5
2 changed files with 4 additions and 0 deletions

View File

@@ -1097,6 +1097,9 @@
{
"path": "vr/index",
"style": {
// #ifdef APP-PLUS
"navigationStyle": "custom",
// #endif
"navigationBarTitleText": "工厂展示"
}
},

View File

@@ -13,6 +13,7 @@ export default {
};
},
onLoad(option) {
this.title = option?.title ?? '';
this.$api.sendRequest({
url: '/api/config/defaultvr',
success: res => {