From eab5a97ba51775ad5ff24173fb8c96e4f77fc1ea Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 25 Jul 2026 15:20:51 +0800 Subject: [PATCH] feat(vr page): add custom nav bar and support page title param MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 为APP-PLUS端的VR页面配置自定义导航栏样式 2. 从路由参数中获取并设置页面标题 --- pages.json | 3 +++ pages_tool/vr/index.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/pages.json b/pages.json index eb7826a..45fca78 100644 --- a/pages.json +++ b/pages.json @@ -1097,6 +1097,9 @@ { "path": "vr/index", "style": { + // #ifdef APP-PLUS + "navigationStyle": "custom", + // #endif "navigationBarTitleText": "工厂展示" } }, diff --git a/pages_tool/vr/index.vue b/pages_tool/vr/index.vue index c95330f..2dd6fe5 100644 --- a/pages_tool/vr/index.vue +++ b/pages_tool/vr/index.vue @@ -13,6 +13,7 @@ export default { }; }, onLoad(option) { + this.title = option?.title ?? ''; this.$api.sendRequest({ url: '/api/config/defaultvr', success: res => {